Model Context Protocol (MCP) · Example Payload

Mcp Prompts Get Example

Model Context ProtocolMCPAI AgentsToolsResourcesPromptsJSON-RPCAnthropicStandardsTopic

Mcp Prompts Get 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-prompts-get-example.json Raw ↑
{
  "request": {
    "jsonrpc": "2.0",
    "id": 6,
    "method": "prompts/get",
    "params": {
      "name": "summarize_pr",
      "arguments": {
        "pr_number": "42"
      }
    }
  },
  "response": {
    "jsonrpc": "2.0",
    "id": 6,
    "result": {
      "description": "Summarize a pull request for the engineering changelog.",
      "messages": [
        {
          "role": "user",
          "content": {
            "type": "text",
            "text": "Summarize PR #42 in one paragraph suitable for the changelog."
          }
        }
      ]
    }
  }
}