Errors & recovery · 2026-09-03

A tool call returns HTTP 400 “invalid parameter: date must be ISO-8601”.

Your retry logic is about to fire.

  1. ADo not retry - fix the malformed date and re-issue the call
  2. BRetry the identical call three times with backoff
  3. CSwitch to a fallback provider and retry the same call
  4. 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.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path