Skip to content

4. Errors

MCP distinguishes protocol errors, returned as JSON-RPC errors, from tool execution errors, returned in tool results with isError: true so that models can correct themselves and retry.

MCP_ERROR_TOOL_RESULT MUST

Failed CRUD operations MUST be reported as tool execution errors: a tool result with isError: true, whose structuredContent is the error data as a Problem Details object (Base ERROR_PROBLEM_DETAILS, without the status member) and whose content has a text item with the same object serialized.

MCP_ERROR_PROTOCOL MUST

JSON-RPC errors MUST be used only for errors defined by MCP itself, such as an unknown tool or a malformed request. This specification defines no JSON-RPC error codes.

Source: lingodata/crud@bc225ba · specs/mcp/sections/04-errors.md · mcp 0.2.0 (draft) · MCP revision 2026-07-28

LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.