docs: improve tool descriptions for better AI agent selection#3491
Closed
teehooai wants to merge 1 commit intomodelcontextprotocol:mainfrom
Closed
docs: improve tool descriptions for better AI agent selection#3491teehooai wants to merge 1 commit intomodelcontextprotocol:mainfrom
teehooai wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
Add scenario triggers ("Use when...") and disambiguation guidance to
tool descriptions in git and memory servers.
AI agents select tools based on description text. Current descriptions
are minimal (e.g., "Shows the working tree status") and give agents
no guidance on when to use each tool vs similar alternatives.
Changes:
- git: Add "Use when" guidance and disambiguation between diff tools
- memory: Add "Use when" guidance and clarify entity vs relation vs
observation operations
No code changes -- only description strings updated.
Tested with TeeShield (https://github.com/teehooai/teeshield):
- git: description score 2.9 -> 8.7 (+5.8)
- memory: description score 3.4 -> 9.6 (+6.2)
Author
|
Note: The CI failure in "Build fetch" is unrelated to this PR. The error is: This PR only modifies description strings in |
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.
Summary
Add scenario triggers ("Use when...") and disambiguation guidance to tool descriptions in git and memory servers.
AI agents select tools based on description text. Current descriptions are minimal and give agents no guidance on when to use each tool vs similar alternatives.
Example change (git_status):
Before:
After:
Changes
git_diff_unstagedvsgit_diff_stagedvsgit_diff)No code changes -- only description strings updated.
Motivation
We built TeeShield, a scanner that rates MCP tool description quality. Scanning the official servers found:
Key findings across 79 tools in 7 servers:
Test plan
🤖 Generated with Claude Code