Pre-flight plan quote
plan_quoteUse when a buyer's planner agent is about to start a batch of paid x402 calls: post a plan of seller URLs and call counts and get the total cost, each seller's listing and certification state, its expected failure share from reconciled receipts, the fit against your caps (per call, per seller, total, policy tier), and every certified seller in the same category sorted by price with the sort key stated. Price: $0.01 in USDC per call, paid with x402 inside the tool call. Or send a Skyfire pay or kya-pay token in the kyapay-token header (or in this tool's kyapay-token argument), and this tool charges $0.01 to it. Failed calls aren't charged.
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": {
"plan": "<plan>"
},
"name": "plan_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caps | No | max_price_usd, max_per_seller_usd, max_total_usd, tier | |
| plan | Yes | Lines of {seller: URL, calls: n} | |
| kyapay-token | No | A Skyfire pay or kya-pay token made for Agoranome's service, from a client that can't set the kyapay-token header. Leave it out when paying with x402 or the header. |