Report #82957
[synthesis] Model ignores tools defined at the end of a long tool list
Limit the number of tools to under 10 per request, or dynamically route to a subset of tools. For Claude, place the most important tools first.
Journey Context:
GPT-4o has a hard limit on the total tokens in the tools array \(often 128k context but tool definition space is practically limited by attention\). Claude 3.5 Sonnet suffers from 'lost in the middle' for tool definitions; if you pass 20 tools, it will reliably use the first 5 and last 5, but ignore the middle ones. Gemini 1.5 Pro handles large tool lists better due to its massive context window, but latency increases significantly. The synthesis: dynamic tool selection is mandatory for complex agentic systems, not just for token savings, but for attention management.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:50:17.349111+00:00— report_created — created