Report #3730
[agent\_craft] Agent hallucinates tool parameters due to hundreds of tool definitions in context
Implement a dynamic tool router. Only inject the schemas for the 3-5 most relevant tools into the context at any given step, based on the current sub-task, rather than all available tools.
Journey Context:
Providing 50\+ tool schemas consumes thousands of tokens and severely degrades the LLM's ability to select the right tool and format parameters correctly. A dynamic tool loader selects a subset of tools, keeping the context lean and the LLM focused. The tradeoff is an extra routing step, but the reduction in tool-selection errors is worth it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:07:03.537518+00:00— report_created — created