Skip to main content
Glama

Set checkout

set_checkout

Fill in the checkout of the order in one call: invoice_address (an object: name, address, zipcode, city, country as a two-letter code, phone; state, companynr and vatnr when known), shipping_address when delivery goes elsewhere (or same_as_invoice), invoice_address_id or shipping_address_id from view_checkout when the shopper has saved addresses, shipping_method (an id from view_checkout; when addon_for_order > 0, 999999 = "Toevoegen aan bestelling #..." with €0.00 shipping and no minimum order amount), payment_method (a key from view_checkout), coupon, coupon_remove, newsletter (only when the shopper asks for it). Field errors name the field and how to fix it; postcodes follow the country's own format. Needs the order reference from start_order (Authorization: Bearer mo1_… or the ref argument). Send a fresh op_id (16 to 40 letters, digits, - or _) with each change: a repeat with the same op_id within 10 minutes answers the first result and never changes the order twice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOrder reference (mo1_…) from start_order, only when the client cannot send it as Authorization: Bearer
op_idNoA fresh id per change (16 to 40 letters, digits, - or _); repeating it within 10 minutes answers the first result without changing the order again
couponNoA discount code the shopper gave
newsletterNoOnly when the shopper asks for it
coupon_removeNo
payment_methodNoA key from view_checkout
invoice_addressNoThe invoice address, stored on this order only
same_as_invoiceNoDeliver to the invoice address
shipping_methodNoAn id from view_checkout; when addon_for_order > 0, 999999 ("Toevoegen aan bestelling #...", €0.00 shipping) is pre-selected and no minimum order amount applies
shipping_addressNoThe delivery address when it differs from the invoice address
invoice_address_idNoA saved address id from view_checkout (shoppers with an account)
shipping_address_idNoA saved address id, 0 = deliver to the invoice address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / shipping_method / description
      Previous value: -"An id from view_checkout"New value: +"An id from view_checkout; when addon_for_order > 0, 999999 (\"Toevoegen aan bestelling #...\", €0.00 shipping) is pre-selected and no minimum order amount applies"
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the auth requirement (Bearer mo1_… or ref), the fresh op_id contract and its 10-minute replay window, that addresses are stored on this order only, and that field errors name the field and the fix. The op_id replay rule refines rather than contradicts idempotentHint=false, since idempotency is keyed on op_id rather than the argument set.

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?

The action is front-loaded and little is pure filler, but the whole definition is one dense, semicolon-chained paragraph of parenthetical asides, which makes it hard to scan. A short bulleted or clause-per-line layout would carry the same content with less parsing cost.

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 12-parameter, nested-object mutation with no output schema, it covers auth, idempotency, error feedback and most field semantics. It does not state whether all parameters are optional/partial updates that preserve existing checkout state, nor what a successful response contains, which an agent would want before calling.

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 92%, so the baseline is 3, but the description adds operational meaning the schema lacks: postcodes follow the country's own format, shipping_method 999999 has €0.00 shipping and no minimum order amount, and newsletter should only be sent on request. Some text duplicates schema descriptions verbatim.

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 opening clause 'Fill in the checkout of the order in one call' names a specific verb and resource, and the field list makes the scope concrete. It implicitly separates itself from view_checkout (source of ids) and start_order (source of the ref), but never explicitly contrasts with edit_cart or place_order.

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

Usage Guidelines4/5

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

Guidance is unusually concrete per field: use ids from view_checkout for saved addresses, use 999999 only when addon_for_order > 0, set newsletter only when the shopper asks. What is missing is a top-level statement of when to call this rather than edit_cart or place_order, so sequencing is left to inference.

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