Skip to main content
Glama

prepare_checkout

Read-onlyIdempotent

For quote_basket and prepare_checkout only. 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. Return a buyer review link for a valid UAE basket. 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. Optional buyer name, phone, email and address may be supplied for prefill only. The link contains those details and must be shared only with the buyer. Creates NO order. Buyer must open the link, review or correct details, accept terms and personally confirm. Card payment link follows by WhatsApp. 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. If a call returns INVALID_ARGUMENTS, follow missingFields (when present) and nextAction; correct invalid values or collect missing information before retrying with the complete 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. Quote first and resolve blockers, then send the same complete basket here. No cart, session or quote ID is accepted. Buyer prefill is optional and must be nested inside buyer. Example arguments: {"country":"AE","emirate":"Dubai","items":[{"id":"PRODUCT_ID_FROM_SEARCH","qty":1}]}

Input Schema

NameRequiredDescriptionDefault
buyerNoOptional buyer-supplied prefill, accepted only by prepare_checkout. Omit if not supplied. No payment, consent or approval fields. The resulting link contains these details and is not encrypted; share only with the buyer.
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. Changed11 schema fields changed
    • addedInput schema / properties / buyer / description
      Added value: +"Optional buyer-supplied prefill, accepted only by prepare_checkout. Omit if not supplied. No payment, consent or approval fields. The resulting link contains these details and is not encrypted; share only with the buyer."
    • addedInput schema / properties / buyer / properties / address / description
      Added value: +"Optional buyer-supplied address, up to 500 characters; do not invent missing delivery details."
    • addedInput schema / properties / buyer / properties / email / description
      Added value: +"Optional buyer-supplied email, up to 254 characters; use the supplied value as-is."
    • addedInput schema / properties / buyer / properties / name / description
      Added value: +"Optional buyer-supplied name, up to 120 characters; do not infer or invent it."
    • addedInput schema / properties / buyer / properties / phone / description
      Added value: +"Optional buyer-supplied phone, up to 40 characters; use the supplied value as-is."
    • 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.8/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the tool creates no order, the returned link contains unencrypted buyer PII and must be shared only with the buyer, payment follows by WhatsApp after the buyer personally confirms, and the tool is stateless (full basket resent, duplicates combined). None of this contradicts readOnlyHint/idempotentHint — a link-generating, non-mutating preview is consistent with them.

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

Conciseness4/5

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

The critical constraints — required fields, ask-before-calling, no order created, statelessness — are front-loaded and a concrete example anchors the shape. It is dense but long, with some redundancy (the buyer-link/PII warning is restated, and prefill rules repeat in both prose and schema), so not a 5.

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?

Covers everything an agent needs for a 5-param nested-object call with no output schema: what is returned (a review link), what it contains, who may receive it, what not to send, how to recover from INVALID_ARGUMENTS, and where prefill data goes. Nothing material is left to inference.

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 100%, so the baseline is 3; the description still earns a bump by warning that Dubai and qty 1 in the example are illustrations rather than defaults, that duplicate IDs must be combined into one line, and that buyer prefill must be nested. It does not add much beyond the already-rich per-field descriptions, so it stops short of 5.

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?

States a specific verb+resource: prepares a buyer review link for a valid UAE basket, and explicitly says it 'Creates NO order.' It separates itself from the siblings by naming quote_basket (quote first) and search_products (resolve orderable IDs), so an agent can route without opening a schema.

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 sequencing ('Quote first and resolve blockers, then send the same complete basket here'), explicit exclusions ('No cart, session or quote ID is accepted'; 'Do not send prices, totals, consent or approval flags'), explicit pre-call collection rules ('Ask the buyer for any missing destination or quantity'), and error handling guidance via missingFields/nextAction on INVALID_ARGUMENTS.

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