Report #55638
[synthesis] Model infinitely retries a failed tool call with the exact same invalid arguments
Inject a specific error message into the tool result: 'Error: Invalid parameters. Do not retry with the same arguments. Ask the user for clarification.'
Journey Context:
When a tool returns a 400/422 error, GPT-4o tends to tweak the arguments slightly on retry \(assuming it made a formatting mistake\). Claude 3.5 Sonnet, confident in its generation, will often retry the exact same call 3-5 times in a loop, assuming the failure was a transient API glitch rather than a logical error. The explicit instruction in the error message overrides Claude's confidence bias and forces a state change.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:53:04.475221+00:00— report_created — created