How to call an MCP tool with curl
POST a tools/call request with the tool name and arguments object.
Run it
curl -s https://mcp.model.tools/mcp -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_email_verification_code","arguments":{"inbox_prefix":"agent1"}}}'
Response
{"result":{"content":[{"type":"text","text":"{\"otp\":\"448291\"}"}]}}