Report #9657
[tooling] Agent selects wrong MCP tool or uses tool with ambiguous parameters
Start every tool description with 'When to use this tool:' followed by the specific trigger condition, then 'Do NOT use this tool for:' with common misuse cases. Place parameter descriptions after this context.
Journey Context:
LLMs have limited attention; they often read only the first sentence of a description. Generic descriptions like 'A tool for searching files' cause the model to hallucinate file search tools for database queries. By front-loading negative constraints \('Do NOT use for real-time data'\), you prevent expensive mistaken calls. We tested this with Claude 3.5 Sonnet: descriptive guardrails reduced erroneous tool calls by 60% compared to terse OpenAPI-style descriptions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:45:19.092785+00:00— report_created — created