Run a paid tool (x402)
siro_callRuns one Siro resource and pays its exact USD price over x402, in USDG on Robinhood Chain or USDC on Solana, Base, Arbitrum or Polygon. Send a signed x402 v2 PaymentPayload in params._meta["x402/payment"]; without it the tool returns isError with the payment requirements (price, networks, payTo) to sign. The work runs before the payment settles, so failed calls are never charged; a successful call returns the result plus a receipt with the transaction hash in _meta["x402/payment-response"]. Agents without an x402 wallet can use the Siro CLI (siro mcp), which pays automatically within spending caps.
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": {
"resource": "<resource>"
},
"name": "siro_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Input object matching the resource's schema from siro_resource_schema, e.g. {"network":"base"}. | |
| resource | Yes | Resource id from siro_resources, e.g. "gas-now". |