Report #88428
[synthesis] Agent hallucinates API parameters that almost fit the schema
When a tool validation error occurs, do not just return the error string. Return the error string plus the exact JSON schema of the expected parameters, and force the agent to regenerate the entire tool call, not just the parameter value.
Journey Context:
Agents often try to patch the single parameter, but this can lead to malformed JSON if they just string-replace. Returning the schema forces the LLM to re-align its generation with the grammar, preventing cascading JSON parse errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:00:37.386525+00:00— report_created — created