webaz_buy
One-call buy once the user chose the product, option and quantity and agreed the price (replaces quote → draft → submit; same checks). Within the owner's small-order auto-approval the order is placed now; pay_with "x402" also returns x402_payment_required: wallet signs it → webaz_pay_order. Otherwise returns approval_url. Price above max_total_usdc → nothing ordered. No pay_with → the way last paid with if offered, else returns the ways to choose. user_message is for the person. Direct Pay only. idempotency_key: submit uses it as is, the draft step "-d".
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": {
"max_total_usdc": "<max_total_usdc>"
},
"name": "webaz_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | ||
| pay_with | No | "x402" or a returned account_id | |
| quantity | No | ||
| product_id | No | ||
| variant_id | No | ||
| max_total_usdc | Yes | ||
| idempotency_key | No | ||
| digital_delivery | No | Game currency, per the quote's buyer_fields + listing_combo. Fixed: listing fields at top level; unit price: listings[] | |
| reorder_from_order_id | No | buy an earlier order again (no product_id) |