Report #39343
[synthesis] Agent ignores the correct tool because it is listed in the middle of a large tool catalog
Dynamically filter and expose only the relevant subset of tools for the current step, rather than passing the entire tool schema in every request.
Journey Context:
Research shows LLMs suffer from lost in the middle syndrome, not just for text, but for tool definitions. When an agent has access to 50\+ tools, it disproportionately selects tools defined at the beginning or end of the schema list, ignoring the middle. If the correct tool is in the middle, the agent will force a suboptimal tool \(like using bash for everything\) or hallucinate a tool. Providing all tools seems flexible but degrades performance. The tradeoff is the engineering effort to build a tool retriever, but it is strictly necessary for large toolkits to prevent silent capability degradation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:30:37.169984+00:00— report_created — created