A tool call returns HTTP 400 “invalid parameter: date must be ISO-8601”.
Your retry logic is about to fire.
- ADo not retry - fix the malformed date and re-issue the call
- BRetry the identical call three times with backoff
- CSwitch to a fallback provider and retry the same call
- DWait 60 seconds, the parameter may become valid
Answer: A
Do not retry - fix the malformed date and re-issue the call
Why
A 4xx is the caller’s fault - the request is wrong and will fail identically forever. Retrying, backing off, or failing over just burns quota; only fixing the input helps.
- Errors & recoveryYour fleet of agents all hit a 429 rate-limit at once and every one immediately retries on a fixed 1-second timer.
- Errors & recoveryAn agent processes a batch of 100 records.
- Errors & recoveryA payment tool times out.
- Errors & recoveryAfter a tool returns an error, the agent calmly calls the very same tool with the very same arguments, again and again.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path