Report #15826
[agent\_craft] Agent fails to select the correct tool or hallucinates tool parameters when provided with a massive, flat list of tool schemas in the system prompt
Dynamically inject tool schemas based on the current state or task. Use a tool router to select a subset of relevant tools, or group tools into separate prompts/modes \(e.g., 'file editing mode' vs 'shell execution mode'\).
Journey Context:
Tool selection accuracy drops as the number of tools increases \(the needle in a haystack problem for function calling\). Agents don't need git\_push when they are writing a unit test. Dynamically curating the available toolset reduces token usage and focuses the model's attention.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:12:25.567521+00:00— report_created — created