Skip to main content
When a tool call fails, the result has isError: true and a JSON body:
next_action says what to do next, and instructions explains it. Rate-limited calls also include retry_after_seconds.
When a free allowance runs out, the tool doesn’t fail. It returns an empty list with entitlement.upgrade_required: true. Check that field before saying nothing was found. See Limits.

Error codes