Enhance MCP tool schema documentation with parameter examples#7959
Merged
Enhance MCP tool schema documentation with parameter examples#7959
Conversation
- Updated all number parameters (item_number, issue_number, pull_request_number, discussion_number, etc.) to include clear examples showing the numeric ID format from GitHub URLs - Enhanced add_comment.item_number with explicit description that it's the numeric ID from GitHub URL (e.g., 123 in github.com/owner/repo/issues/123) - Applied same enhancement pattern to 18 other MCP safe output tools - Synced changes between actions/setup/js and pkg/workflow/js directories - Verified schema changes are embedded in the binary via build process Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update MCP tool schema with parameter examples
Enhance MCP tool schema documentation with parameter examples
Dec 28, 2025
pelikhan
approved these changes
Dec 28, 2025
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
add_commenttool had a 6.67% failure rate because agents weren't providing the requireditem_numberparameter. Schema descriptions lacked clarity on what these parameters represent and how to extract them from GitHub URLs.Changes
Enhanced 16 MCP safe output tools with concrete parameter examples:
item_numbernow includes GitHub URL extraction exampleExample
Before:
After:
Pattern Applied
All numeric ID parameters now follow:
Tools Enhanced
create_issue, update_discussion, close_discussion, close_issue, close_pull_request, add_comment, add_labels, add_reviewer, assign_milestone, assign_to_agent, assign_to_user, update_issue, update_pull_request, push_to_pull_request_branch, link_sub_issue, update_project
Files Modified
actions/setup/js/safe_outputs_tools.json(source)pkg/workflow/js/safe_outputs_tools.json(embedded in binary)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.