Report #59104
[synthesis] Agent ignores the most appropriate tool because it is listed in the middle of a long tool definition list
Dynamically filter and reorder the available tools for the agent at each step based on the current sub-goal, keeping the list under 5-7 tools, or use a tool-retrieval step before the action step.
Journey Context:
LLMs suffer from the lost in the middle phenomenon. If you give an agent 30 tools, it will disproportionately use the first and last few. If the correct tool is number 15, it will often try to hack the solution using tool 1 or 30, leading to bizarre multi-step workarounds. The synthesis is that tool availability must be dynamically scoped to the immediate task, not statically exposed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:41:37.101876+00:00— report_created — created