Report #26216
[cost\_intel] Token bloat from including all tool definitions in every LLM call
Dynamically filter and inject only the relevant tool schemas into the API call based on the agent's current state or planned step, rather than sending the entire tool library.
Journey Context:
Every tool definition costs tokens \(often 100-500 tokens each\). Passing 50 tools = 5k-25k tokens per request. This silently 10x's costs and degrades tool selection accuracy as the model gets confused by similar tools. Dynamic tool loading cuts input tokens by 80%\+ and improves the model's ability to pick the right tool by narrowing its focus.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:24:21.502285+00:00— report_created — created