Fix tool name references in issue-triage workflow prompt#10502
Merged
timotheeguerin merged 2 commits intomainfrom Apr 27, 2026
Merged
Fix tool name references in issue-triage workflow prompt#10502timotheeguerin merged 2 commits intomainfrom
timotheeguerin merged 2 commits intomainfrom
Conversation
…CP tool names The agentic triage workflow prompt referenced `get_issue` and `get_issue_comments` tools, but the actual GitHub MCP tools use `issue_read` with method parameters (`get` and `get_comments`). This mismatch caused the agent to fail to produce safe outputs (no labels, comments, or noop) when triaging issue #10496. Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/b07993be-49ed-4ac4-a954-66be4043ddeb Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Debug agentic triage workflow failure
Fix tool name references in issue-triage workflow prompt
Apr 27, 2026
timotheeguerin
approved these changes
Apr 27, 2026
timotheeguerin
added a commit
that referenced
this pull request
Apr 27, 2026
…ures (#10504) Agentic Triage workflow ([run 24996553319](https://github.com/microsoft/typespec/actions/runs/24996553319)) produced no safe outputs despite the agent running for ~4 minutes. This is the second failure after PR #10502 fixed tool name references — the agent still silently failed to call any safe output tool. Analysis of the generated prompt and MCP gateway logs revealed three issues: - **Missing `get_file_contents` tool reference**: The prompt said "read the file `eng/common/config/labels.ts`" without specifying the MCP tool name or parameters. Now explicitly references `get_file_contents` with `owner`/`repo`. - **Unconditional `web-fetch` reference**: The prompt unconditionally instructed the agent to "Use `web-fetch` to verify the playground link", but only `safeoutputs` and `github` MCP servers were registered — `web-fetch` was not available. Changed to conditional: "If the `web_fetch` tool is available, use it to verify..." - **No fallback instruction**: Added an explicit `## Important` section reinforcing the requirement to call at least one safe output tool (`add_comment`, `add_labels`, or `noop`) before finishing, with guidance to call `noop` on errors. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
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.
The Agentic Triage workflow (run 24915251147) produced no safe outputs because the prompt referenced non-existent tool names.
The prompt instructed the agent to use
get_issueandget_issue_comments, but the actual MCP GitHub tools are:get_issueissue_read(method:get)get_issue_commentsissue_read(method:get_comments).github/workflows/issue-triage.mdto referenceissue_readwith the correct method parameters