Skip to main content

Error envelope

Tool errors use a stable envelope:
Clients should handle these error codes and tolerate new codes being added over time.

HTTP authentication challenge

Authentication can fail before a tool runs. Missing or invalid authentication returns HTTP 401, a WWW-Authenticate header with resource_metadata, and:
This is separate from the tool envelope above. It also covers expired tokens; clients should not depend on a distinct TOKEN_EXPIRED response. Refresh if supported, or reconnect the account and retry. initialize and tools/list remain available before sign-in.

Rate-limited details

RATE_LIMITED responses include retry information when available:
Do not retry immediately. Wait at least retry_after_seconds, then retry only if the user’s request is still relevant.

Troubleshooting