🧾 JSONmedium
3. Write a tools/call request
Write the JSON-RPC request that invokes the "get_weather" tool: • jsonrpc: "2.0" • id: 2 • method: "tools/call" • params.name: "get_weather" • params.arguments: { "city": "Paris" }
How to approach this
After discovering tools with `tools/list`, the client invokes one with `tools/call`. It's a JSON-RPC REQUEST (so it has an `id` and expects a result): `method: "tools/call"`, and `params` carries the tool `name` plus an `arguments` object matching that tool's inputSchema. The server runs it and returns a `content` result. Note the tool's arguments go under `params.arguments`, not directly in `params`.
config.json