Wire an MCP tool — load tools from a server, not a registry — step 5 of 9
You're constructing a JSON-RPC tools/call request. The method
string is fixed ("tools/call"), the params carry name and
arguments. Fill in the params dict so the server runs the
search tool with {"q": "ramen"}.
Expected output:
{'jsonrpc': '2.0', 'id': 1, 'method': 'tools/call', 'params': {'name': 'search', 'arguments': {'q': 'ramen'}}}
⌘↵ runs the editor.read, then continue.
Wire an MCP tool — load tools from a server, not a registry — step 5 of 9
You're constructing a JSON-RPC tools/call request. The method
string is fixed ("tools/call"), the params carry name and
arguments. Fill in the params dict so the server runs the
search tool with {"q": "ramen"}.
Expected output:
{'jsonrpc': '2.0', 'id': 1, 'method': 'tools/call', 'params': {'name': 'search', 'arguments': {'q': 'ramen'}}}
⌘↵ runs the editor.read, then continue.