Check Price & Balance
x402_quote_planCheck exact prices for 1 to 25 paid tools and optionally verify account balance, pause state, and spending limits. Use this before running paid tools to confirm total cost; do not use to browse tools (x402_list_capabilities), preview samples (x402_preview_capability), or run tools (x402_execute_capability). Parameters: omit spend_key and x-atlas-spend-key header for rate-only math, or supply either (mismatch -> HTTP 400) to evaluate cumulative policy. Behavior: zero charge; validates all items together so any unknown tool or invalid input fails the whole quote; rejects invalid keys and temporarily unavailable billing ledger (120 req/min/IP).
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": {
"items": "<items>"
},
"name": "x402_quote_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Ordered list of 1 to 25 capability line items to price and policy-check together. | |
| spend_key | No | Stripe-funded master or delegated subagent spend key (format: sbk_<43+ chars>). Optional when the caller supplies the x-atlas-spend-key HTTP header. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when all items were quoted successfully. | |
| charged | No | Always false because quoting never debits funds. | |
| total_usd | No | Formatted total combined cost in USD (e.g. "0.40"). | |
| total_cents | No | Total combined cost in USD cents across all quoted items. | |
| payment_assistant | No |