Skip to main content
Glama

View checkout

view_checkout
Read-onlyIdempotent

What the order still needs before it can be placed: lines, totals in the storefront currency, the address snapshot or the shopper's saved addresses, shipping methods with prices, the payment methods this order may use, addon_for_order, and next. When addon_for_order > 0 in state, shipping method 999999 ("Toevoegen aan bestelling #...", €0.00 shipping) is available and pre-selected, and no minimum order amount applies when 999999 is selected. With a confirmed email (path A) every method is offered, bank transfer included; before confirmation (path B) the shopper pays first with card, iDEAL or Bancontact. While a payment is open the order is not editable: check_payment shows it, cancel_payment stops it. Needs the order reference from start_order (Authorization: Bearer mo1_… or the ref argument).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "view_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOrder reference (mo1_…) from start_order, only when the client cannot send it as Authorization: Bearer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds substantial behaviour: the addon_for_order>0 branch where shipping method 999999 is pre-selected at €0.00 with no minimum order, the path A (confirmed email, bank transfer offered) versus path B (card/iDEAL/Bancontact first) payment rules, and the fact the order is not editable while a payment is open. It also discloses the auth requirement (Bearer mo1_… or the ref argument).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the returned content, which is good, but the first sentence is a long run-on list and the rest packs path A/path B, a magic method id 999999, and a tool-name-like token addon_for_order without defining any of them. Dense and mostly earned, yet opaque in places where a single clarifying clause would help.

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 no output schema, the description carries the return-shape burden and does list the fields an agent can expect, plus the state machine for payments and the auth path. For a high-complexity ordering flow that is close to sufficient; only the response envelope/format and what happens on an unknown or expired ref are left open.

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 100% and there is only one optional parameter, so the baseline is already met by the schema. The description goes further by explaining the provenance of ref (from start_order) and the condition under which it is needed (only when the client cannot send it as an Authorization header), which gives an agent a real decision rule rather than restating 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 enumerates exactly what the call returns for an order: lines, currency totals, address snapshot or saved addresses, shipping methods with prices, usable payment methods, addon_for_order and next. That makes the resource and scope concrete and distinguishable from siblings like set_checkout and place_order. It never states the verb outright ("returns" / "view"), relying on the enumerated payload to convey that it is a read of checkout state.

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 clear context: the order reference comes from start_order, and while a payment is open check_payment shows it and cancel_payment stops it, which implicitly dates this tool to the pre-placement window. What is missing is an explicit boundary against set_checkout (the mutating counterpart) or status; the agent must infer that this is the read side of that pair.

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