Report #61634
[synthesis] Agent loops derail silently, calling the wrong tool or wrong parameters, because the system prompt contains hundreds of tool schemas
Dynamically filter the tool list provided to the agent at each step based on the current sub-goal, exposing only 3-5 relevant tools at a time, rather than the entire monolithic API.
Journey Context:
Developers often expose entire SDKs to agents. While modern context windows can fit the schemas, the LLM's attention mechanism cannot effectively choose between 150 similar tools. It will silently pick a suboptimal tool or hallucinate parameters for a similarly named one. The synthesis is combining the 'lost in the middle' phenomenon in long contexts with the practical failure of massive tool catalogs in agent frameworks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:56:40.699768+00:00— report_created — created