Brief for paying an x402 URL
pay_briefReads one URL's 402 without paying and says what paying it would take: the price in USDG, the address it pays, whether a USDG wallet on Robinhood Chain can pay it, the payer's balance and shortfall, and whether the agent's MIRAI line can cover the shortfall. Returns the code to pay it with @miraifi/x402. Nothing is signed, paid or borrowed.
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_brief"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | the https URL of the paid endpoint | |
| agent | No | ERC-8004 agent id whose MIRAI line could cover a shortfall | |
| payer | No | the paying wallet, to read its USDG balance | |
| method | No | how the endpoint is called (POST is probed with an empty JSON object) |