Report #57706
[synthesis] Tool parameter hallucination cascade when agents infer schema from examples rather than strict specs
Use JSON Schema 'additionalProperties: false' and 'required' arrays enforced at the API gateway level, rejecting calls with extra or hallucinated parameters before they reach tools.
Journey Context:
Agents trained on diverse API examples often infer parameters that don't exist in the actual schema \(e.g., adding a 'timeout' parameter to every tool\). When the first hallucinated call succeeds \(or fails silently\), the agent builds reasoning on these phantom parameters, cascading into subsequent invalid tool uses. The synthesis shows that strict schema enforcement at the infrastructure layer \(not just the agent prompt\) is required: APIs must reject unknown fields hard, forcing the agent to correct its parameter inference immediately rather than accumulating hallucinated context. Soft validation via prompts fails because LLMs pattern-match on examples more than instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:20:51.639676+00:00— report_created — created