Skip to main content
Glama

Update an order

update_checkout
Idempotent

Choose local_delivery or ship_to_home, or change the quantity, address or contact details of an order started with create_checkout. Call with only checkout_id to re-read it. Returns the order total once a delivery option is chosen.

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
buyerNo
quantityNo
checkout_idYes
idempotency_keyNoOptional. Reuse the same value to retry safely; the retry returns the first result instead of acting twice.
delivery_addressNo
fulfillment_modeNo

Output Schema

NameRequiredDescriptionDefault
statusYesincomplete, ready_for_complete, requires_escalation, completed or canceled.
totalsYes
currencyNo
messagesYes
order_idNo
next_stepYes
expires_atNo
line_itemsNo
checkout_idYes
reason_codeNo
continue_urlNoPresent when the shopper should finish on JENNi instead.
fulfilled_byYes
fulfillment_optionsYes
selected_fulfillment_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / fulfillment_mode / enum
      Previous value: -[
      -  "local_delivery"
      -]New value: +[
      +  "local_delivery",
      +  "ship_to_home"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / fulfillment_mode / enum
      Previous value: -[
      -  "local_delivery",
      -  "ship_to_home"
      -]New value: +[
      +  "local_delivery"
      +]
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotentHint=true, destructiveHint=false. The description adds real value beyond them: the re-read behavior with only checkout_id, and the fact that an order total is returned once a delivery option is chosen — useful side-effect/return context for a mutation tool.

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?

Three front-loaded sentences with no filler: the changeable fields first, the re-read special case second, the return value last. Every sentence adds 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?

With an output schema present, the description needn't detail return values, and it still mentions the total. Combined with annotations covering safety/idempotency and the schema covering the nested objects, this is nearly complete; only explicit guidance on when to hand off to complete_checkout is missing.

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 description coverage is only 17%, so the description must compensate for several bare parameters. It names the interpretable fields (fulfillment_mode's two values, quantity, address, contact details) and ties checkout_id to the re-read mode, covering most of the six parameters even though it omits idempotency_key details (handled by the schema) and nested-address specifics.

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 specific actions (choose delivery mode, change quantity/address/contact) on a specific resource ('an order started with create_checkout'), and explicitly distinguishes itself from the create_checkout sibling. An agent can identify it as the mutate-an-existing-checkout tool without opening the schema.

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 one clear usage rule: 'Call with only checkout_id to re-read it', and scopes the tool to orders started with create_checkout rather than complete_checkout. It stops short of explicitly naming complete_checkout as the alternative for finalizing, so the routing is implied rather than fully 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