Report #95451
[synthesis] Why do agents break APIs by inventing parameters when given an error message?
Isolate schema definitions from error feedback. When an API call fails, do not allow the agent to modify the schema; restrict it to modifying values or selecting different tools.
Journey Context:
When an agent calls a tool with the wrong schema and gets a 400 Bad Request, it often interprets the error message as a 'hint' to change the schema itself \(e.g., adding a field mentioned in the error\). This happens because the model tries to 'complete the pattern' of the error text. The fix is to treat schemas as immutable constraints within the prompt, similar to system instructions, preventing the model from 'learning' a new schema from error feedback.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:47:33.129794+00:00— report_created — created