Skip to main content
Glama

View checkout

get_checkout
Read-only

Read checkout by checkout_id. Returns persisted order status, payment_status, payment_method, items, customer, total_zar and currency. Initial order status is started, not pending. This tool does not return a previously generated payment_url: retain the complete_checkout response in caller context.

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": "get_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
checkout_idYesId of the checkout, as returned when the checkout was created (starts MCP_)

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. Changed1 schema field changed
    • addedInput schema / properties / checkout_id / description
      Added value: +"Id of the checkout, as returned when the checkout was created (starts MCP_)"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare a safe read (readOnlyHint true, destructiveHint false), and the description still adds real value: it reveals the returned field set, that the initial order status is 'started' rather than 'pending', and that payment_url is deliberately absent, prompting context retention. That last point is a meaningful behavioral caveat a caller could otherwise misread as an error. It does not cover failure behavior when the id is unknown, which keeps it short of a 5.

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 short sentences, front-loaded with the action and resource, followed by precise behavioral caveats. No filler or restated title text.

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?

Given a one-parameter read tool with an output schema and clear annotations, the definition covers the essentials, including a non-obvious status naming quirk and a known omission. Its enumeration of return fields overlaps the output schema, which is mildly redundant rather than harmful.

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?

The single parameter has full schema description coverage, including the 'starts MCP_' prefix hint, so the schema does the work. The description only restates that checkout_id identifies the checkout, adding no format or sourcing detail beyond 'as returned when the checkout was created'.

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 names a specific verb and resource ('Read checkout by checkout_id') and disambiguates one neighboring behavior by stating it will not return a payment_url. It stops short of distinguishing itself from related readers such as get_order or the checkout lifecycle tools, so the agent still infers which read tool applies.

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

Usage Guidelines3/5

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

Usage is implied by 'Read checkout by checkout_id' and by the note to retain complete_checkout output for payment_url, which hints at a retrieval-after-write workflow. There is no explicit when-to-use or when-not-to-use statement versus sibling readers.

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