Report #42925
[agent\_craft] Agent performance degrades and it hallucinates tool calls because 50\+ tool schemas are injected into the system prompt
Implement a tool router: use a cheap, fast LLM call or embedding to select the 3-5 most relevant tools for the current step, and only inject those schemas into the prompt.
Journey Context:
Providing all available tools seems helpful but overwhelms the LLM's attention, leading to wrong tool selection or parameter errors \(the 'needle in a haystack' problem for tool schemas\). Tradeoff: an extra routing step adds latency. But accuracy improves dramatically. This is the standard architecture for multi-tool agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:31:01.434384+00:00— report_created — created