Skip to main content

REST API HTTP Status Codes

MCP Tool Error Payload

MCP tool calls return errors as structured CallToolResult(isError=true) objects rather than crashing the JSON-RPC transport:
  • Check retryable and hint to decide whether the agent can self-correct automatically or should surface the message to the end user.
  • For create_request, always reuse the same idempotency_key when retrying after a network timeout or 5xx error.