Report #8102
[gotcha] Tool selection degradation with 50\+ active tools
Cap the number of tools exposed to the LLM at any single reasoning step to under 20. Implement a routing layer or a 'tool-search' tool that retrieves the correct tool schema on demand.
Journey Context:
LLMs suffer from the 'lost in the middle' and needle-in-a-haystack problems. When presented with 50\+ tool schemas, they frequently select the wrong tool or hallucinate parameters for the right one. A flat tool list seems logical but breaks LLM selection accuracy. A two-step retrieval \(LLM searches for tool, then uses tool\) drastically improves selection accuracy at the cost of one extra LLM call.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:40:21.434644+00:00— report_created — created