Report #13119
[agent\_craft] Agent hallucinates tool parameters or fails to select the right tool due to too many tools defined
Implement a tool router. Group tools by capability and use a lightweight classifier or first LLM call to select the tool subset to pass to the main agent. Keep active tool schemas under 5-7.
Journey Context:
Every tool definition consumes tokens in the system prompt. Research shows LLM tool-calling accuracy degrades significantly as the number of tools increases. A router adds a hop, but drastically improves tool selection accuracy and saves context window for actual task data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:48:27.619184+00:00— report_created — created