Call a tool (paid per call via x402)
call_toolRun an x402 Forge tool on your own input and get its answer ({ok, result, warnings}) plus a signed receipt. Paid per call with x402 inside this MCP call: without a payment the result is the payment terms (x402Version, accepts: the tool's own price in USDC, network and payee, the same as GET /p/{slug}); an x402 MCP client signs one and calls again with it in _meta["x402/payment"]. Never charged for an error: an unknown or sold tool and invalid input are refused before any price, and a failed run is not settled. Free first: try_product runs the example; describe_product shows the input schema.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"input": "<input>"
},
"name": "call_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The tool's slug, from search_products | |
| input | Yes | The tool's parameters as one JSON object (describe_product shows its input schema) |