Report #60041
[synthesis] Agent confidently passes incorrect arguments to a tool because it relies on a cached or hallucinated schema
Inject the exact, current JSON schema of the tool into the LLM prompt immediately before the tool call decision point, and reject any tool call that doesn't strictly validate against the live schema.
Journey Context:
Combining OpenAI's function calling behavior with Anthropic's tool use troubleshooting shows that in long conversations, the original tool definitions fall out of the active attention window. The agent remembers the name of the tool but hallucinates the parameters. Because it's confident about the tool name, it generates plausible-looking but structurally invalid JSON. The fix is to re-inject the exact JSON schema immediately before the tool call decision point.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T07:16:14.037803+00:00— report_created — created