Prepare a payment quote
create_payment_quoteUse this when you pay for the book on the person's behalf. Prepares a fixed payment quote for a printed book, including shipping, for MPP and, when listed, x402 (USDC on Base). Requires a complete delivery address, and email for the order confirmation when the book is not saved to an account yet. No charge yet. Ask the user to confirm the total and address before paying: pay_book for MPP, or POST paymentUrl with an x402 client for USDC. Quote expires after 15 minutes.
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": {
"bookId": "<bookId>",
"bookToken": "<bookToken>",
"country": "<country>",
"idempotencyKey": "<idempotencyKey>",
"shippingAddress": "<shippingAddress>"
},
"name": "create_payment_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| bookId | Yes | ||
| country | Yes | ||
| quantity | No | ||
| bookToken | Yes | ||
| idempotencyKey | Yes | ||
| shippingAddress | Yes |