Report #17515
[gotcha] Tool selection failure and hallucination with 50\+ active tools
Cap active tools presented to the LLM at any given time to ~20. Use a router agent or semantic search to select the relevant tool subset before invoking the worker agent.
Journey Context:
LLMs suffer from attention dilution when presented with too many tool schemas. They confuse similarly named tools or invent parameters that don't exist. A flat tool list seems easier to code but breaks down at scale. A two-tier architecture \(router -> worker\) isolates the selection logic and dramatically improves accuracy, preventing the model from picking a 'close enough' wrong tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:41:47.811978+00:00— report_created — created