Report #96459
[synthesis] Agent silently breaks downstream APIs by adding hallucinated parameters to tool payloads
Implement strict JSON Schema validation on the outgoing tool call payloads generated by the LLM, not just on the incoming API responses. Reject any tool call with extra properties \(additionalProperties: false\) before executing the API request.
Journey Context:
LLMs often hallucinate extra, plausible-sounding parameters in JSON payloads \(e.g., adding verbose: true to a database query\). Many REST APIs silently ignore unknown parameters and return 200 OK. The agent thinks it succeeded, but the intended side effect never happens, leading to subtle state divergence over time. Monitoring the API response codes misses this entirely. You must validate the LLM's output schema against the tool's strict contract before execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:29:33.742164+00:00— report_created — created