Grokking the Model Context Protocol (MCP)
0% completed
Requests, Results, Errors, and Notifications
The Costbook server receives this message from a client.
{ "jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {} }
The server sends this message back.
{ "jsonrpc": "2.0", "id": 1, "result": { "resultType": "complete", "tools": [ { "name": "submit_expense", "description": "Create one expense on an expense report.", "inputSchema": { "type": "object", "required": ["report_id", "amount"] } } ], "ttlMs": 300000, "cacheScope": "private" } }
A reader of this pair can ask four questions
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%