From the MCP docs (https://modelcontextprotocol.io/specification/2025-06-18/server/tools#error-handling) Protocol Error Example: { "jsonrpc": "2.0", "id": 3, "error": { "code": -32602, "message": "Unknown tool: invalid_tool_name" } } Tool Error Example: { "jsonrpc": "2.0", "id": 4, "result": { "content": [ { "type": "text", "text": "Failed to fetch weather data: API rate limit exceeded" } ], "isError": true } }