Report #61993
[gotcha] Agent selects wrong tool or hallucinates parameters with many MCP tools
Keep active tool count below 20 whenever possible; use two-stage tool routing where a lightweight classifier first selects a tool subset, then the LLM chooses from that subset; namespace tool names clearly \(e.g., 'db\_query' not 'query'\); ensure every tool description starts with its primary action verb and includes a negative example of when NOT to use it.
Journey Context:
LLM tool selection relies on attention over tool definitions. As tool count grows, attention mass dilutes across similar descriptions. Tools with overlapping names or vague descriptions \('search', 'find', 'lookup'\) become indistinguishable. The agent calls the wrong tool, gets an unexpected result, then either loops retrying or hallucinates a response. Adding more 'helpful' specialized tools makes this worse, not better. The counter-intuitive insight: removing tools often improves agent performance more than adding them.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:32:28.866016+00:00— report_created — created