Skip to main content
Glama

get_order

Read-only

Retrieve details for an order by its ID, including items, status, shipping, and tracking information. Orders are buyer-private — pass buyer_delegation_token (the delegation token from this buyer's checkout approval) so the gateway can confirm the buyer owns this order. If checking if an order is paid: a status of 'pending' or 'pending_payment' means the order has NOT been paid. Do NOT assume that the vendor storefront has synchronization delays or database lag; treat 'pending' as unpaid. When an order is unpaid, offer to collect payment in the chat by starting the in-chat payment flow (get_payment_methods → initiate_payment → get_payment_status) rather than only pointing the user at the payment_url. Do not mark the purchase task as successful until the status updates to 'processing' or 'completed'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idYesRegistered site ID
order_idYesOrder ID
buyer_delegation_tokenNoThe buyer's delegation token (from their checkout approval); required to read their order.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNo
totalNo
statusNo
order_idNo
created_atNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The description adds significant behavioral context beyond the annotations. Annotations declare readOnlyHint=true and destructiveHint=false, and the description reinforces this (read-only retrieval). It also discloses the delegation token requirement and nuanced status interpretation, providing transparent guidance on how the tool behaves and should be used.

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?

The description is relatively long but each sentence serves a distinct purpose (purpose, constraint, status interpretation, workflow guidance). It is front-loaded with the primary function. While it could be slightly condensed, its comprehensiveness justifies the length for a non-trivial tool.

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?

Given the presence of an output schema (indicating return structure is documented separately), the description covers everything necessary: purpose, parameter semantics, usage guidelines, and behavioral transparency. There are no apparent gaps for an agent to select and invoke this tool correctly.

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 the schema already describes all three parameters. However, the description adds valuable context for the buyer_delegation_token, explaining its purpose ('the delegation token from this buyer's checkout approval') and that it is required to read the order. This goes beyond the schema's description and aids correct usage.

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 clearly states 'Retrieve details for an order by its ID' and lists the included information (items, status, shipping, tracking). While it is specific and unambiguous, it does not explicitly differentiate from the sibling tool 'list_orders', which lists orders rather than retrieving a single one.

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

Usage Guidelines5/5

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

The description provides extensive usage guidance: it explains the need for the buyer_delegation_token, how to interpret order status (pending/unpaid), warns against assuming synchronization delays, and prescribes a concrete workflow for unpaid orders (get_payment_methods → initiate_payment → get_payment_status). It also tells the agent not to mark a task successful until status is 'processing' or 'completed'.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct action or resource, with detailed descriptions that clearly differentiate cart management, checkout flow, payment steps, delegation, orders, and product operations. Potential overlaps like get_active_cart vs. get_cart are resolved by their specific use cases.

Naming Consistency5/5

All tools use a consistent verb_noun_snake_case pattern (e.g., add_to_cart, set_shipping_address). There are no mixing of conventions like camelCase or inconsistent verb styles.

Tool Count4/5

26 tools is on the higher side but appropriate for a comprehensive e-commerce server covering product discovery, cart management, checkout, payment, orders, and reviews. Could potentially be streamlined slightly, but still reasonable.

Completeness5/5

The tool set covers the full e-commerce lifecycle: site listing, product search/compare/reviews, cart CRUD, coupon application, shipping, checkout, payment with delegation and OTP, order retrieval, and back-in-stock alerts. No obvious gaps for typical buyer workflows.