Skip to main content
Glama

Update checkout details

update_checkout
Destructive

Update customer details or payment_method only before payment-link generation. Paid, cancelled and payment-in-progress checkouts are rejected. Concurrent state changes are detected; retrieve the latest status before retrying.

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
customerNoCustomer details: real name, email and South African mobile number, plus delivery address and city. Placeholder details are refused at checkout
checkout_idYesId of the checkout, as returned when the checkout was created (starts MCP_)
payment_methodNoyoco (card) or ozow (instant EFT)

Output Schema

NameRequiredDescriptionDefault
ap2No
itemsNo
statusYes
messageNo
currencyYes
customerNo
next_stepNo
total_zarYes
item_countNo
checkout_idYes
payment_urlNo
payment_methodNo
provider_referenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / checkout_id / description
      Added value: +"Id of the checkout, as returned when the checkout was created (starts MCP_)"
    • addedInput schema / properties / customer / description
      Added value: +"Customer details: real name, email and South African mobile number, plus delivery address and city. Placeholder details are refused at checkout"
    • addedInput schema / properties / customer / properties / address / description
      Added value: +"Street delivery address. A real address is required before payment"
    • addedInput schema / properties / customer / properties / city / description
      Added value: +"Delivery town or city, for example Knysna or Johannesburg"
    • addedInput schema / properties / payment_method / description
      Added value: +"yoco (card) or ozow (instant EFT)"
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses significant behavioral traits: the editable fields are limited to customer details or payment_method, certain checkout states are rejected, and concurrent state changes are detected with retry guidance. This is important operational context for a destructive mutation and is consistent with destructiveHint=true.

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?

The description is three tightly written sentences with no filler, and the most important constraint — update before payment-link generation — is front-loaded. Each sentence contributes a distinct operational rule.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with an output schema and full schema description coverage, the description supplies the key missing context: timing, rejected states, and concurrency handling. An agent has enough information to decide when to call it and how to behave on failure.

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 coverage is 100%, so the schema already documents customer fields, checkout_id, and payment_method with enums and nesting. The description adds the temporal constraint that customer details or payment_method may only be updated before payment-link generation, but does not add further parameter-level meaning beyond the schema.

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 states a specific verb and resource ('Update customer details or payment_method') and scopes it to checkouts before payment-link generation. It is clearly distinct from checkout lifecycle siblings, though it does not explicitly name update_cart or another alternative, so sibling differentiation is implied rather than stated.

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?

It gives explicit when-to-use guidance ('only before payment-link generation') and when-not guidance ('Paid, cancelled and payment-in-progress checkouts are rejected'). It also implies retrieving the latest status before retrying, but does not name get_checkout as the concrete alternative, leaving the tool choice slightly implicit.

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