Model Context Protocol (MCP) · Example Payload

Mcp Tools Call Example

Model Context ProtocolMCPAI AgentsToolsResourcesPromptsJSON-RPCAnthropicStandardsTopic

Mcp Tools Call Example is an example object payload from Model Context Protocol (MCP), with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

mcp-tools-call-example.json Raw ↑
{
  "request": {
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
      "name": "get_weather",
      "arguments": { "city": "Reston" }
    }
  },
  "response": {
    "jsonrpc": "2.0",
    "id": 3,
    "result": {
      "content": [
        {
          "type": "text",
          "text": "Reston, VA is 72°F and partly cloudy."
        }
      ],
      "structuredContent": {
        "city": "Reston",
        "temperatureF": 72,
        "condition": "partly_cloudy"
      },
      "isError": false
    }
  }
}