quote_basket
Price a complete UAE basket: line prices, discount, delivery fee and estimate for the buyer’s emirate, the payment methods the checkout will offer, and any blocker with the amount needed to fix it. When the basket is ready the reply already contains checkoutUrl, the link the buyer opens to finish, so no second call is needed unless the buyer wants details prefilled. Add/remove/change items and call again. Both basket tools (quote_basket, prepare_checkout): Required on every call: country (AE), emirate (buyer-selected destination) and items (the complete basket). Each item requires id and qty. Ask the buyer for any missing destination or quantity before calling; use search_products to resolve exact orderable product IDs. Never guess missing values. UAE only. For Research Use Only. This research-use-only catalogue is for buyers 21+ years of age and is supplied for research purposes only. Not for human or veterinary use. Does not store or submit an order. Reading replies: a refusal has isError true with error, message, field and nextAction (plus blockers, unavailableItems or remainingItems when they apply). A priced basket that cannot be ordered yet is not an error: it has readyForReview false and a blockers list with the amounts and a nextAction. catalogExpiresAt is this server’s cache clock, not a deadline: a checkout link does not expire and the order page rechecks stock and prices when the buyer opens it. Send these fields inside tools/call params.arguments. Both basket tools are stateless: send the complete basket again, combining duplicate IDs. Do not send prices, totals, consent or approval flags. For INVALID_ARGUMENTS, check missingFields and invalidFields when present. Follow nextAction and resend the complete corrected basket. Dubai and qty 1 are examples, not defaults; replace them with the buyer-selected emirate and quantity, and replace PRODUCT_ID_FROM_SEARCH with an orderable id from search. Do not send buyer details to quote_basket. Example arguments: {"country":"AE","emirate":"Dubai","items":[{"id":"PRODUCT_ID_FROM_SEARCH","qty":1}]}
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": {
"country": "<country>",
"emirate": "<emirate>",
"items": "<items>"
},
"name": "quote_basket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Required COMPLETE desired basket of 1–20 distinct variant IDs. Combine the same ID into one line; send the entire updated basket on every call. | |
| country | Yes | Required delivery country code: AE means United Arab Emirates. | |
| emirate | Yes | Required buyer-selected destination. Use an exact listed emirate; ask the buyer if unknown, never assume Dubai. | |
| promoCode | No | Optional buyer-supplied promotion code, up to 24 letters or digits. Omit when absent; do not invent one. |