Report #50480
[gotcha] LLM selects wrong tool or hallucinates tool names with 30\+ available tools
Keep concurrently visible tool count under 20. Implement two-stage tool selection: a router/discovery tool that returns a category-specific subset, then the agent calls from that subset. Use unambiguous, verb-noun tool names \(e.g., 'git\_commit' not 'commit'\).
Journey Context:
Tool-selection accuracy follows a power-law degradation, not a linear one. Going from 5 to 15 tools is usually fine; 15 to 30 causes frequent misselection; 50\+ causes the model to hallucinate tool names that don't exist or conflate similar tools. The model sees all names in context and blends them. Developers add tools incrementally, each one seeming harmless, until accuracy collapses. The fix isn't removing tools — it's controlling which ones are visible at any given reasoning step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:12:45.669715+00:00— report_created — created