estimate_x402_cost
Preflight an x402-protected URL to get its USDC cost without paying, so you can decide if it fits your credit and spend limit before committing.
Instructions
Preflight an x402-protected URL and return its USDC cost without paying. Reflects against the calling agent's available credit and session spend-limit so you can decide gating in one round-trip. Use BEFORE x402_pay. Requires an agent key (floe_...).
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": "estimate_x402_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target URL to preflight. | |
| method | No | HTTP method (default GET). |