fix: add "when to use" guidance to MCP tool descriptions (#884)#904
fix: add "when to use" guidance to MCP tool descriptions (#884)#904NorethSea wants to merge 1 commit into
Conversation
Rewrite every tool description to start with "Use to…" or "Use when…"
so LLMs can instantly recognize when to call each tool. Remove internal
jargon ("progressive disclosure", "4-tier pipeline", "citation chain")
and label multi-agent tools explicitly.
Closes rohitg00#884
Signed-off-by: NorethSea <963979204@qq.com>
|
@NorethSea is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughThis PR updates MCP tool descriptions across eight tool registry versions to add explicit "when to use" guidance. Descriptions are reworded from vague feature descriptions into prescriptive usage instructions with operational details. No tool names, schemas, types, or control flow logic are altered. ChangesMCP Tool Description Updates
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Rewrites every MCP tool description to start with "Use to…" or "Use
when…" so LLMs can instantly recognize when to call each tool. Replaces
internal jargon with plain language and labels multi-agent tools.
Problem
53 MCP tools competing for attention, but only 5 were ever called in a
real multi-agent Hermes setup with 184 sessions (91% unused). Tool
descriptions told the agent what each tool did, but not when to
call it — leaving overlapping tools indistinguishable and specialized
tools undiscoverable.
Changes
Every description now follows a consistent pattern:
"Use to/when <trigger> — <details>"
Examples:
memory_save:
before: "Explicitly save an important insight, decision, or
pattern to long-term memory."
after: "Use to persist an important insight, decision, or pattern
to long-term memory — call this when you discover a
pattern, confirm a preference, fix a recurring bug, or
make a decision worth remembering across sessions."
memory_frontier:
before: "Get all unblocked actions ranked by priority and
urgency."
after: "Use to see all unblocked actions ranked by priority —
call when you have multiple pending tasks to decide what
to work on next. For a single recommendation, use
memory_next instead."
Internal jargon replaced:
into structured long-term memories (episodic → semantic →
procedural)"
Multi-agent tools (signals, team, lease, mesh, checkpoints,
sentinels) now start with "For multi-agent setups" so single-agent
agents skip them.
Overlapping tools differentiated with cross-references
(frontier↔next, diagnose↔heal, facet_tag↔facet_query).
How to test
npm test -- test/consistency.test.ts
test/tool-count-consistency.test.ts
test/mcp-surface-default.test.ts
test/mcp-standalone.test.ts
All 43 pass. No tool names, schemas, or counts changed.
Platforms tested
Closes #884