Report #24129
[agent\_craft] Agent with many tools performs poorly or slows down because all tool schemas are injected into the context on every turn
Implement tool routing: use a lightweight classifier \(or the LLM itself in a fast/cheap mode\) to select a subset of 3-5 relevant tools for the current step, and only inject those schemas into the active context.
Journey Context:
Providing 50 tools to an LLM costs thousands of tokens per turn and degrades tool selection accuracy \(the needle in a haystack problem for tool names\). By routing to a subset of tools, you drastically reduce the context footprint and improve the model's ability to choose the right tool. This is analogous to retrieval-augmented generation, but for actions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:54:30.113597+00:00— report_created — created