Skip to main content
Glama

Start a checkout

create_checkout

Starts a checkout from product ids and quantities, priced by the store. The response lists requirements (the fields still missing) and the checkoutUrl where the buyer finishes the order.

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": {
      "store": "<store>",
      "items": "<items>"
    },
    "name": "create_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyerNoThe shopper. The phone must be an Egyptian mobile (01XXXXXXXXX or +201XXXXXXXXX).
itemsYesLine items: one entry per product (and variant) with its quantity. 1 to 50 entries.
storeYesThe store, from find_stores or search_all_stores (its `store` field).
addressNoDelivery address in Egypt. governorate (Arabic or English name), city, area (district), street.
discountCodeNoDiscount code to apply, up to 64 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • addedInput schema / properties / address / properties / area / description
      Added value: +"District id (from search_districts or resolve_district) or the district / neighbourhood name."
    • addedInput schema / properties / address / properties / building / description
      Added value: +"Building number, floor and apartment."
    • addedInput schema / properties / address / properties / city / description
      Added value: +"City within the governorate."
    • addedInput schema / properties / address / properties / governorate / description
      Added value: +"Egyptian governorate, Arabic or English name (for example Cairo)."
    • addedInput schema / properties / address / properties / notes / description
      Added value: +"Free-text delivery notes for the courier."
    • addedInput schema / properties / address / properties / street / description
      Added value: +"Street name."
    • addedInput schema / properties / buyer / properties / email / description
      Added value: +"Buyer's email address."
    • addedInput schema / properties / buyer / properties / name / description
      Added value: +"Buyer's full name."
    • addedInput schema / properties / buyer / properties / phone / description
      Added value: +"Egyptian mobile number, 01XXXXXXXXX or +201XXXXXXXXX."
    • addedInput schema / properties / discountCode / description
      Added value: +"Discount code to apply, up to 64 characters."
    • addedInput schema / properties / items / description
      Added value: +"Line items: one entry per product (and variant) with its quantity. 1 to 50 entries."
    • addedInput schema / properties / items / items / properties / productId / description
      Added value: +"Product id (UUID) from search_products or get_product."
    • addedInput schema / properties / items / items / properties / quantity / description
      Added value: +"Number of units, 1 to 1000."
    • addedInput schema / properties / items / items / properties / variantId / description
      Added value: +"Variant id (UUID) of the product, for products that have variants."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent, closed-world write. The description adds real context beyond them: pricing is computed by the store, and the result includes `requirements` (the fields still missing) plus a `checkoutUrl`. It omits whether repeated calls create duplicate checkouts, any auth/permission needs, and what happens if the store is unavailable.

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

Conciseness5/5

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

Two tight sentences with zero padding, front-loading the action and inputs before the return-value summary. Every clause conveys information the agent needs.

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?

With no output schema, the description usefully covers what comes back (requirements, checkoutUrl), and the schema fully documents the five nested parameters. The remaining gap is lifecycle guidance — what to do with the missing requirements and via which tool — which would complete the picture for a non-idempotent creation tool.

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%, with every nested field (buyer, items, address, discountCode) documented including formats and ranges, so the schema carries the parameter burden. The description adds only that items are product ids and quantities priced by the store; it does not clarify required-vs-optional behavior or the interplay between `requirements` and the address/buyer fields.

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

Purpose4/5

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

The description names a specific verb and resource ('Starts a checkout') and scopes the inputs ('from product ids and quantities, priced by the store'), which is far more than a restatement of the name. It does not explicitly contrast itself with siblings such as get_checkout or update_checkout, so an agent must infer the lifecycle position.

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

Usage Guidelines3/5

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

Usage is implied: this is the entry point that produces a checkoutUrl the buyer uses to finish the order, and `requirements` signals follow-up work may be needed. There is no explicit when-to-use/when-not-to-use guidance, no prerequisite ordering (e.g., resolving the store or checking delivery area first), and no named alternative.

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.