Skip to main content
Glama

Start checkout

create_checkout
Destructive

Phase 1 of 2 in the purchase flow. Convert a cart (or inline items + customer) into a checkout. Customer name, email, and phone are required. Returns checkout_id. No payment link is minted yet, call complete_checkout for that. Use update_checkout to correct customer details before finalising.

Input Schema

NameRequiredDescriptionDefault
itemsNoUse instead of cart_id: the blinds to buy, each with product_id, width_mm, height_mm, colour and mount_type. The server recalculates all prices
cart_idNoEither cart_id or items required
customerNoCustomer details: real name, email and South African mobile number, plus delivery address and city. Placeholder details are refused at checkout
payment_methodNoDefault 'yoco'

Output Schema

NameRequiredDescriptionDefault
ap2No
itemsNo
statusYes
messageNo
currencyYes
customerNo
next_stepNo
total_zarYes
item_countNo
checkout_idYes
payment_urlNo
payment_methodNo
provider_referenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / items / items / properties / operation
      Added value: +{
      +  "description": "Coulisse honeycomb only (honeycomb-blockout-coulisse, honeycomb-light-filtering-coulisse): 'tdbu' = top-down/bottom-up, up to 1300 mm wide, its own price; 'cord' (default) = cord lock, up to 3000 mm wide.",
      +  "enum": [
      +    "cord",
      +    "tdbu"
      +  ],
      +  "type": "string"
      +}
  2. Changed4 schema fields changed
    • addedInput schema / properties / customer / description
      Added value: +"Customer details: real name, email and South African mobile number, plus delivery address and city. Placeholder details are refused at checkout"
    • addedInput schema / properties / customer / properties / address / description
      Added value: +"Street delivery address. A real address is required before payment"
    • addedInput schema / properties / customer / properties / city / description
      Added value: +"Delivery town or city, for example Knysna or Johannesburg"
    • addedInput schema / properties / items / description
      Added value: +"Use instead of cart_id: the blinds to buy, each with product_id, width_mm, height_mm, colour and mount_type. The server recalculates all prices"
  3. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / mount_type / description
      Previous value: -"Use inside for inside mount or outside for face fix"New value: +"Use inside for inside mount or outside for outside mount"
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag a non-read-only, destructive, non-open-world operation, and the description adds genuinely new context: this only creates the checkout record and mints no payment link, and it returns a checkout_id for the next phase. It does not say whether the source cart is consumed or stock reserved, which is the main remaining behavioural gap given destructiveHint=true.

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?

Four short sentences, front-loaded with the flow phase, then the action, then the return, then the alternatives — no filler. 'Returns checkout_id' mildly duplicates the output schema, the only reason it isn't a clean 5.

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

Completeness4/5

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

For a complex tool with nested objects, an anyOf requirement structure, and an output schema, the description covers flow position, required customer data, the either/or input rule, and the next-step sibling. The cart-consumption / side-effect question is the one thing an agent could still be unsure about.

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

Parameters3/5

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

Schema description coverage is 100% and the nested customer/items fields are heavily documented in the schema itself, so the schema does most of the work. The description only restates that name, email, and phone are required and that either a cart or inline items plus customer is accepted, which is useful but not additive depth.

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 and resource ('Convert a cart ... into a checkout') and pins its position in the flow ('Phase 1 of 2 in the purchase flow'). It also names both accepted input shapes and the sibling that follows it, so an agent can distinguish it from complete_checkout and update_checkout 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 when-to-use routing: use this now because 'No payment link is minted yet, call complete_checkout for that', and use update_checkout for corrections before finalising. It also disambiguates the two input modes (cart_id versus inline items + customer) in the first sentence.

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