pay
Call a machine-payable (x402) endpoint and settle the required USDG fee when the endpoint returns 402, enforcing budget caps.
Instructions
Call a machine-payable (x402) endpoint and pay in USDG if it answers 402. Budget caps apply.
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": {
"url": "<url>"
},
"name": "pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | JSON body to send | |
| method | No | POST |