Conversation
…te filtering, and cross-referencing examples Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix evening news generator to use MPC latest data
Fix evening news workflow: Replace implicit "latest" queries with explicit date filtering
Feb 17, 2026
…tor.md (100% test pass) Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
…- ALL TESTS PASS (100%) Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
…ve MCP query best practices Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
Fix evening news workflow: Replace implicit "latest" queries with explicit date filtering
Standardize MCP query patterns: explicit date filtering, data freshness validation
Feb 17, 2026
pethers
approved these changes
Feb 17, 2026
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agentic workflows relied on implicit "latest" data from MCP server without freshness validation or explicit date filtering. This caused potential stale data issues and inconsistent query patterns across workflows.
Changes
Standardized data freshness validation
get_sync_status()first to validate data age and warm MCP serverDate parameter support matrix
Only 3 of 32 riksdag-regering-mcp tools support explicit date parameters:
get_calendar_events(from/tom)search_regering(from_date/to_date)analyze_g0v_by_department(dateFrom/dateTo)All other tools require post-query filtering by
datum,publicerad, orinlämnadfields.Tool annotations and filtering examples
Enhanced riksdag-regering-mcp skill (+235 lines)
Test coverage
35-test validation suite ensures consistency:
Test results: 100% pass rate (35/35) across all 3 workflows
Compilation: 0 errors, 1 cosmetic warning (schedule timing)
Files modified
.github/workflows/news-evening-analysis.md(+175 lines).github/workflows/news-article-generator.md(+69 lines).github/workflows/news-realtime-monitor.md(+75 lines).github/skills/riksdag-regering-mcp/SKILL.md(+235 lines)tests/agentic-workflow-mcp-queries.test.js(+437 lines)💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.