Model Context Protocol (MCP) · Example Payload

Mcp Tools List Example

Model Context ProtocolMCPAI AgentsToolsResourcesPromptsJSON-RPCAnthropicStandardsTopic

Mcp Tools List 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-list-example.json Raw ↑
{
  "request": {
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/list"
  },
  "response": {
    "jsonrpc": "2.0",
    "id": 2,
    "result": {
      "tools": [
        {
          "name": "get_weather",
          "title": "Get Weather",
          "description": "Return current weather for a city.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "city": { "type": "string", "description": "City name." }
            },
            "required": ["city"]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        }
      ]
    }
  }
}