MCP tool errors
When a tool call fails for a recoverable reason, the server returns a JSON-RPC success response containing an MCP error result. The agent can read the message and continue the conversation:Error conditions and messages
Authentication failures
If the token is missing, malformed, or unverifiable, the server returns HTTP401 Unauthorized with a WWW-Authenticate header. This is a transport error, not a tool error. Your client must re-authorize before retrying.
A
401 means re-authorize. Re-read the discovery document at /.well-known/oauth-protected-resource/mcp if necessary, then obtain a new token. Do not retry the same request with the same token.Rate limits
The server may return these retryable status codes:
Both codes are retryable. Honor the
Retry-After value before sending the next request.
Authentication
Learn how to obtain audience-bound tokens and handle 401 responses.
Result conventions
Understand dual-channel results, pagination, and cursor handling.