Report #68939
[gotcha] Agent selects wrong tool or fails to select any tool with 50\+ tools available
Group tools by capability and expose only the relevant subset per turn, or use a two-step retrieval: first a tool-search tool, then the actual tool.
Journey Context:
LLMs suffer from attention diffusion when presented with a massive flat list of tools. Accuracy drops significantly beyond 10-20 tools. Developers assume the model will 'read all descriptions and pick the best one,' but the attention mechanism overweights early/later tools or defaults to generic tools. Dynamic tool loading based on the current task is essential to maintain high selection accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:11:48.137230+00:00— report_created — created