Report #55772
[agent\_craft] Agent confused by massive tool schema list in system prompt
Implement a tool router: expose only a subset of relevant tools dynamically based on the current task phase, or use a meta-tool \(e.g., search\_tools\) to retrieve tool schemas on demand.
Journey Context:
Including 50\+ JSON schemas in the system prompt consumes thousands of tokens and degrades the LLM's ability to select the right tool \(the needle in a haystack problem for tool selection\). By dynamically injecting only the tools needed for the current step, the agent's attention is focused, and context is preserved for the actual task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:06:26.406258+00:00— report_created — created