Skip to main content
Glama

quote_basket

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
itemsYesRequired COMPLETE desired basket of 1–20 distinct variant IDs. Combine the same ID into one line; send the entire updated basket on every call.
countryYesRequired delivery country code: AE means United Arab Emirates.
emirateYesRequired buyer-selected destination. Use an exact listed emirate; ask the buyer if unknown, never assume Dubai.
promoCodeNoOptional buyer-supplied promotion code, up to 24 letters or digits. Omit when absent; do not invent one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / items / description
      Previous value: -"The COMPLETE desired basket of 1–20 distinct variant IDs. Combine the same ID into one line; send the entire updated basket on every call."New value: +"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."
    • changedInput schema / properties / items / items / properties / id / description
      Previous value: -"Exact id from the latest search_products result, not sku, product name or URL. Select an orderable variant."New value: +"Required exact id from the latest search_products result, not sku, product name or URL. Select an orderable variant."
    • changedInput schema / properties / items / items / properties / qty / description
      Previous value: -"Quantity as a JSON integer from 1 to 10, for example 2, not \"2\". The field is qty, not quantity."New value: +"Required buyer-selected quantity as a JSON integer from 1 to 10, for example 2, not \"2\". The field is qty, not quantity. Ask the buyer if unknown; there is no default quantity."
  2. Changed6 schema fields changed
    • addedInput schema / properties / country / description
      Added value: +"Required delivery country code: AE means United Arab Emirates."
    • addedInput schema / properties / emirate / description
      Added value: +"Required buyer-selected destination. Use an exact listed emirate; ask the buyer if unknown, never assume Dubai."
    • addedInput schema / properties / items / description
      Added value: +"The COMPLETE desired basket of 1–20 distinct variant IDs. Combine the same ID into one line; send the entire updated basket on every call."
    • addedInput schema / properties / items / items / properties / id / description
      Added value: +"Exact id from the latest search_products result, not sku, product name or URL. Select an orderable variant."
    • addedInput schema / properties / items / items / properties / qty / description
      Added value: +"Quantity as a JSON integer from 1 to 10, for example 2, not \"2\". The field is qty, not quantity."
    • addedInput schema / properties / promoCode / description
      Added value: +"Optional buyer-supplied promotion code, up to 24 letters or digits. Omit when absent; do not invent one."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/idempotent annotations: it declares both basket tools stateless (resend the complete basket, combine duplicate IDs), states nothing is stored or submitted, explains that readyForReview=false with blockers is not an error, decodes error shapes (isError, error, message, field, nextAction, missingFields/invalidFields), and clarifies catalogExpiresAt is a cache clock rather than a deadline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the outcome and the checkoutUrl behaviour, but the body is a dense block that repeats rules ('Required on every call', 'Never guess missing values', the research-use-only statements) and buries the error-handling and expiry notes in one long run-on paragraph. Restructuring into short labelled sections would keep the value while cutting redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does so: it describes priced results, blockers with amounts, payment methods, checkoutUrl lifetime, and the full error/refusal vocabulary plus how to recover via nextAction. Nothing essential for a correct call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds real constraints: Dubai and qty 1 are examples not defaults, items must be combined by duplicate ID, and prices/totals/consent must not be sent. It supplies a concrete example arguments payload that reinforces the required shape.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Price a complete UAE basket') and enumerates exactly what comes back: line prices, discount, delivery fee, payment methods, blockers, and checkoutUrl. It also distinguishes itself from prepare_checkout by noting the reply already contains the checkout link so no second call is needed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use and when-not-to-call guidance: use when the basket is complete, re-call after add/remove/change, use search_products to resolve orderable IDs, ask the buyer for missing destination or quantity, and never send buyer details to this tool. It also clarifies that quote_basket is not a blocking prerequisite for prepare_checkout.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources