Skip to main content
Glama

Check an order

get_order
Read-only

Retrieve a confirmed order's status, items, and payment details by order_id. customer_email is required as soft-auth and must exactly match the order record, prevents arbitrary order lookups. Returns payment status (paid | pending | failed), production status, and dispatch date once available.

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": {
      "order_id": "<order_id>",
      "customer_email": "<customer_email>"
    },
    "name": "get_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesOrder reference, the same as the checkout id (starts MCP_)
customer_emailYesEmail on the order. Must match the order record (any case) or the lookup is refused

Output Schema

NameRequiredDescriptionDefault
itemsNo
paid_atNo
currencyYes
order_idYes
lead_timeNo
total_zarYes
order_statusNo
payment_statusYes
order_referenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / customer_email / description
      Added value: +"Email on the order. Must match the order record (any case) or the lookup is refused"
    • addedInput schema / properties / order_id / description
      Added value: +"Order reference, the same as the checkout id (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 cover the safety profile (readOnly, non-destructive, closed-world), yet the description still adds real value: an authorization gate on customer_email, the anti-enumeration rationale, and the failure mode ('the lookup is refused'). One caveat: it says the email must 'exactly match' while the schema documents case-insensitive matching, a small internal inconsistency.

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

Conciseness4/5

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

Three tight sentences, front-loaded with the resource and scope, then the auth rule, then the return shape; nothing is padding. The enumeration of returned fields is mildly redundant against the output schema but short enough to earn its place.

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 doesn't need to explain return values, and the auth behavior that the schema cannot express is fully covered. The one loose end is what happens for orders that are not 'confirmed' (e.g. still a draft checkout), which an agent must guess.

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%, so baseline is 3; the description earns an extra point by explaining why the email parameter exists (soft-auth preventing arbitrary order lookups) rather than just restating the constraint. The order_id semantics are left entirely to the schema, which already documents the MCP_ prefix.

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?

States a specific verb and resource (retrieve an order's status, items, payment details) keyed by order_id, and the phrase 'confirmed order' implicitly separates it from cart/checkout siblings. It never names an actual alternative such as get_checkout or get_cart, so sibling differentiation is inferred 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 Guidelines3/5

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

The description makes the precondition unambiguous: customer_email is required as soft-auth and must match the record or the lookup is refused. What it lacks is any explicit routing guidance for when to reach for this versus get_checkout/get_cart, so usage is implied by the 'confirmed order' framing only.

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