REST API HTTP Status Codes
MCP Tool Error Payload
MCP tool calls return errors as structuredCallToolResult(isError=true) objects rather than crashing the JSON-RPC transport:
- Check
retryableandhintto decide whether the agent can self-correct automatically or should surface the message to the end user. - For
create_request, always reuse the sameidempotency_keywhen retrying after a network timeout or5xxerror.