Grokking the Model Context Protocol (MCP)
0% completed
Listing and Calling a Tool on the Wire
A client sends one tools/call request for submit_expense. Depending on the amount, the Costbook server returns one of these two results.
{ "jsonrpc": "2.0", "id": 2, "result": { "resultType": "complete", "content": [ { "type": "text", "text": "Created expense E-2291 on report R-118." } ], "isError": false } }
{ "jsonrpc": "2.0", "id": 3, "result": { "resultType": "complete", "content": [ { "type": "text", "text": "Expense not created
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%