Quote Cap
quote_capGet a free, binding price quote for a metered Cap before calling it. This does not start provider work, reserve funds, spend a free call, or charge anything. Pass the complete input exactly as you will call it — the quote is bound to that input, the Cap, and your identity for 10 minutes. For capped_actual Caps also pass limits (per-line maximum quantities); add max_charge_micro_usd to hold spending under your own budget. Then pass the returned quote_id to call_cap with a stable idempotency_key. One quote can create one order; a new key cannot reprice an old order. Needs the user's qumge key.
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": {
"slug": "<slug>",
"operation": "<operation>",
"input": "<input>"
},
"name": "quote_cap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The Cap's slug, from search_caps. | |
| input | Yes | The complete input you intend to call with; validated against the operation's input_schema. | |
| limits | No | For capped_actual operations: line key → maximum quantity for this order. Required for every output-metered line, and never above the Cap's limit. | |
| operation | Yes | Operation name from get_cap. | |
| qumge_key | No | Optional: your Qumge API key, for clients that cannot set an Authorization header. Takes precedence over the header. Never echoed back. | |
| max_charge_micro_usd | No | Optional lower budget. The quote fails if the authorized amount would exceed it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| limits | No | ||
| notice | No | ||
| currency | Yes | ||
| quote_id | Yes | ||
| rounding | No | ||
| operation | No | ||
| expires_at | Yes | ||
| settlement | No | ||
| input_digest | No | ||
| measurements | No | ||
| rate_version | No | ||
| input_summary | No | ||
| price_version | No | ||
| minimum_applied | No | ||
| amount_micro_usd | Yes | ||
| base_fee_micro_usd | No | ||
| free_call_possible | No | ||
| resolved_dimensions | No | ||
| max_charge_micro_usd | No | ||
| effective_input_digest | No | ||
| minimum_charge_micro_usd | No |