fix: improve issue-triage prompt to reliably trigger MCP tool calls#10506
Draft
fix: improve issue-triage prompt to reliably trigger MCP tool calls#10506
Conversation
The agent was listing MCP tools but never calling any of them during its 6-minute execution (zero tools/call requests in MCP gateway logs). Three root causes addressed: - Remove `web-fetch` from tools config: declared but never available through the MCP gateway, creating noise in the prompt context - Front-load safe output requirement: moved from end of prompt to immediately after task description as a prominent blockquote, so the agent sees it before any instructions - Restructure prompt for immediate tool invocation: added explicit "call the tool right away" directive, included specific parameter names for each tool call, moved label application (safe output) to step 3 before optional complex steps, and made context gathering and duplicate detection explicitly optional - Reduce prompt complexity: from ~150 lines to ~93 lines, removing verbose sub-instructions that caused the agent to reason without acting Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/1ba3cf16-5565-498e-8c9b-5d3df159087d Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Agentic Triage workflow failure to generate safe outputs
fix: improve issue-triage prompt to reliably trigger MCP tool calls
Apr 27, 2026
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.
Third failure of the Agentic Triage workflow — MCP gateway logs show the agent listed tools but made zero
tools/callrequests across 6 minutes and 31 LLM API calls. The agent was reasoning without acting.Changes to
.github/workflows/issue-triage.mdweb-fetchfrom tools config — declared in frontmatter but never available through the MCP gateway (onlygithubandsafeoutputsservers register), creating noise in the prompt contextissue_readinvocation with specific parameters (owner,repo,issue_number)add_labelsto step 3 — produces a safe output early, before optional complex steps (duplicate detection, playground links)