Skip to main content
Glama

MenuNode

Check an order status

get_order_status
Read-onlyIdempotent

Current status of an order, looked up by order number + the email used to place it. Tell the diner the phase (the same words as the tracking page): awaiting_code = type the code we emailed; awaiting_payment = pay online on tracking_url; pay_expired = it can no longer be paid, order again (an unpaid online order is removed a day after it was placed); delivering = on its way. payment: online = paid / unpaid / refunded (a cancelled order can be paid and not refunded yet), null = pays another way. status is the raw staff status. missing_items: the restaurant ran out of something (a whole dish, or only the add-ons in its extras) and the diner has to choose on tracking_url (go on without it at total_without_missing, or cancel); removed_items: what they already went without; missing_refund: paid online, the money given back for them (sent / pending / by_hand = the restaurant gives it back itself).

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_number": "<order_number>",
      "customer_email": "<customer_email>"
    },
    "name": "get_order_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_numberYes
customer_emailYes

Output Schema

NameRequiredDescriptionDefault
phaseYesWhere the order is in the diner's words, the same as the tracking page (#465)
totalYesDecimal amount as a string with 2 decimals, e.g. "14800.00"
statusYes
paymentYesPaid online: unpaid / paid / refunded; null = pays another way
placed_atYes
fulfillmentYes
order_numberYes
tracking_urlYes
missing_itemsYesThe restaurant ran out of these dishes and asks the diner: go on without them, or cancel the order. extras = only these add-ons of the dish ran out (the dish is made without them, at its price without them); empty = the whole dish. The diner answers on tracking_url (it is never answered here; the order is never cancelled by itself). Empty = nothing to answer
pickup_numberYesThe short number the restaurant calls out when a pickup order is ready (1, 2, 3... per location and local day, #588): tell it to the diner. null for a table or a delivery, until the order is confirmed (email code or online payment), once it is finished, and on older orders
removed_itemsYesDishes the diner already went without; total no longer counts them
missing_refundYesPaid online: the money given back for removed_items through the payment provider. sent = amount went back; pending = amount is on its way; by_hand = the restaurant gives amount back itself (what is still owed, after any part already sent). null = nothing to give back
status_updated_atYes
transfer_discountNoThe restaurant's discount for paying by bank transfer that this order was given, already inside total (and inside transfer.amount). null = none. It is lost, and the total goes back up, if the diner ends up paying another way
total_without_missingYesThe total if the diner goes on without missing_items (same coupon, cover and delivery); null when nothing is missing

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnly, idempotent, closed-world, so the safety profile is covered; the description adds genuine behavioral context instead — it documents that an unpaid online order is removed a day after placement, that a cancelled order can be paid and not yet refunded, and that null payment means the diner pays another way. That is real domain behavior beyond both annotations and schema, though it omits what happens on lookup failure.

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?

The purpose is front-loaded in the first clause, but the remainder is a single unstructured run-on that packs five field definitions into one paragraph without breaks or bullets. The content is substantive rather than filler, yet the density makes it hard to parse and overlaps with what an output schema would normally carry.

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 two-parameter read tool with full annotations and an output schema, the definition covers the lookup mechanics and gives a precise glossary of the returned status values (awaiting_code, pay_expired, delivering, missing_items, missing_refund), which the output schema alone would not explain. The main gap is error handling when the order number and email do not match.

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 0%, so the description must carry the two parameters, and it does identify them semantically — order_number plus 'the email used to place it', which implies the email must be the one on the order. But it adds no format, normalization, or matching-rule detail (case sensitivity, whitespace) beyond that.

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 a specific verb and resource ('Current status of an order') plus the exact lookup key (order number + the placing email), which cleanly separates it from siblings like confirm_order or get_waitlist_status. An agent can identify the resource 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 Guidelines3/5

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

Usage is only implied: the description says 'Tell the diner the phase', which frames it as a diner-facing lookup, and the required email acts as a self-identification gate. It never says when to prefer it over other order tools, nor what to do when the email doesn't match or the order is unknown.

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.