Report #51588
[synthesis] Agent hallucinates parameters when passing output between tools with large schemas
Limit the number of tools active in the prompt at once using dynamic tool retrieval, and strictly type-check intermediate outputs against the next tool's input schema before execution.
Journey Context:
Providing an agent with a massive OpenAPI spec \(e.g., 50 tools\) causes attention diffusion. The agent sees that Tool A outputs an id and Tool B takes an id, and assumes they are the same id, even if one is a user\_id and the other is a transaction\_id. It hallucinates the mapping. Tool retrieval \(RAG for tools\) solves the attention diffusion, but strict schema validation is required to prevent the semantic mismatch between tools.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:05:02.951856+00:00— report_created — created