Skip to main content
Glama

shop

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), 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.

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
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. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations it discloses the auth requirement (Authorization: Bearer mo1_… or ref), the op_id replay window ('a repeat with the same op_id within 10 minutes answers the first result and never changes the order twice'), and field-level error behavior with per-country postcode rules. It does not say whether a call is a partial merge or replaces previously set checkout fields, which is the main behavioral gap for a 12-parameter mutation.

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?

Dense but front-loaded: purpose first, then field-by-field conditions, then error/auth/idempotency notes. Every clause carries information, though the single run-on paragraph would read better as short grouped sentences separating address, method, coupon and operational concerns.

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 mutation with nested address objects, no output schema and no required fields, the definition covers what matters: valid value sources, auth, idempotent retry, and error feedback. It leaves open atomicity (does one bad field reject the whole call?) and the merge-vs-replace semantics of a partial call.

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 92%, so the baseline is 3, but the description adds real meaning: which values must be harvested from view_checkout (shipping_method id, payment_method key, saved address ids), that country is a two-letter code, that phone is mandatory, and that state/companynr/vatnr are optional-when-known. The one unexplained parameter is coupon_remove, undocumented in both schema and description.

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: 'Fill in the checkout of the order in one call', then enumerates exactly what can be filled (addresses, shipping/payment method, coupon, newsletter). It implicitly separates itself from view_checkout (the source of ids) and place_order (finalization), so an agent can tell where this sits in the flow.

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?

Gives concrete conditional guidance: shipping_address 'when delivery goes elsewhere', address ids 'when the shopper has saved addresses', newsletter 'only when the shopper asks for it', and states the order reference comes from start_order. It never states an explicit prerequisite sequence (call view_checkout first) or when not to call it before place_order, so it stops short of a 5.

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