Skip to main content
Glama

Change a prepared order

update_checkout
Idempotent

Change an order prepared with create_checkout before the person confirms it: send only what changes (items replace the whole list). Returns the same as create_checkout.

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": {
      "checkout_id": "<checkout_id>"
    },
    "name": "update_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of names and descriptions: cs (Czech), en, ru, uk, vi.cs
noteNo
buyerNoThe person the order is for, as they told you. Leave out what you do not know.
itemsNo
addressNoDelivery address in the Czech Republic (not needed for pickup).
paymentNoOptional preselection; the person can change it. comgate = card, Apple Pay, Google Pay. cash only on pickup.
deliveryNoA method code from delivery_options; for the Prague courier also a window key from its windows; for pickup the pickup point name.
checkout_idYescheckout_id from create_checkout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is covered; the description adds genuinely new behavior: patch-style partial updates and the fact that a supplied items list replaces the entire existing list (a destructive-in-effect semantic the annotations do not convey). It also notes the return payload mirrors create_checkout. It omits what happens on an already-confirmed order, which is the main behavioral gap.

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 short sentences, front-loaded with the operation and its precondition, then the patch semantics and return shape. Nothing is padded and each clause carries information an 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?

For an 8-parameter tool with nested objects and no output schema, the description supplies the core contract (partial update, items replacement, pre-confirmation timing) and redirects to create_checkout for the return shape. The remaining gaps — nested-object merge behavior and post-confirmation error handling — are modest but real.

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?

With 75% schema coverage the schema already documents most parameters, so the description only needs to add semantics — and it does, by declaring the send-only-what-changes contract and the wholesale replacement behavior of items, neither of which is visible in the schema. It does not clarify whether nested objects such as buyer or address are merged or replaced, leaving that ambiguity unresolved.

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?

Names a specific verb ('Change') and a precisely scoped resource ('an order prepared with create_checkout'), which separates it from create_checkout (new orders) and get_checkout/order_status (reads). It stops short of a full sibling differentiation statement, but the object and operation are unambiguous.

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 a clear precondition — the order must exist and must not yet be confirmed — plus the crucial operating rule that only changed fields are sent. It does not explicitly state what to do instead if the order is already confirmed (create a new checkout?) or when to prefer get_checkout first, so exclusions are implied rather than spelled out.

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