McpJsonRpcMessage

A request or response body; the type column links to the schemas it refers to.

McpJsonRpcMessage

FieldTypeRequiredDescription
jsonrpcstringyes

one of "2.0"

idanyno

The request id; absent on a notification.

methodstringno

The MCP method: `initialize`, `tools/list`, `tools/call`, …

paramsobjectno—
jsonExample
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}