Price a cart with shipping
quote_cartPrice a cart exactly as the bufo.world cart and Stripe Checkout will: line prices, merchandise subtotal, shipping per package group (each group ships separately; some US sticker packages ship free from US$20) and the total before tax. Unknown or invalid items are listed in rejected with the reason.
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": "quote_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Cart lines, at most 50; at most 50 items in total. | |
| country | No | Shipping country: US (prices in USD) or CA (prices in CAD). | US |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| lines | Yes | ||
| country | Yes | ||
| combined | Yes | ||
| currency | Yes | ||
| rejected | Yes | ||
| shipping | Yes | ||
| item_count | Yes | ||
| total_before_tax | Yes | Amount in major units, e.g. 7.99 | |
| merchandise_subtotal | Yes | Amount in major units, e.g. 7.99 |