Skip to main content
Glama

Get an order

shop.order.get
Read-only

Order state, events, tracking {carrier, number, url?} and delivery_eta (null until the merchant ships), refund_policy and tx_hash. For the identity that paid also: fulfillment (the delivered content, repeatable), documents (merchant links), merchant_contact {email, site_url} while the order is open (not once CLOSED). Poll this after a payment_pending answer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYes
eventsYes
tx_hashYes
order_idYes
trackingYes
documentsNo
fulfillmentNo
delivery_etaNo
subscriptionNo
refund_policyYes
merchant_contactNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / subscription
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "id": {
      +      "type": "string"
      +    },
      +    "period_no": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "period_no"
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • addedOutput schema / properties / delivery_eta
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / tracking / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "carrier": {
      +        "type": "string"
      +      },
      +      "number": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "carrier",
      +      "number"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / tracking / type
      Removed value: -"null"
  3. Changed6 schema fields changed
    • addedOutput schema / properties / documents
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / events
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / merchant_contact
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "email": {
      +      "type": "string"
      +    },
      +    "site_url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "email",
      +    "site_url"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / refund_policy
      Added value: +{
      +  "additionalProperties": {},
      +  "type": "object"
      +}
    • addedOutput schema / properties / tracking
      Added value: +{
      +  "type": "null"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "order_id",
      -  "state",
      -  "tx_hash"
      -]New value: +[
      +  "order_id",
      +  "state",
      +  "tx_hash",
      +  "events",
      +  "tracking",
      +  "refund_policy"
      +]
  4. Added

TDQS

B3.3/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, not open-world), so the bar is lower, yet the description adds real behavioral context: delivery_eta is null until the merchant ships and merchant_contact is only present while the order is open (not once CLOSED). These conditional-availability rules are useful and not derivable from the schema or annotations.

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 text is dense and information-rich but structured as a run-on enumeration of payload fields, with the operation itself and the usage trigger buried at the end. It earns most of its length but is not front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value detail is not strictly required, yet the description spends most of its words on return fields and omits the input parameter semantics. Behavioral conditions are well covered, leaving the order_id gap as the main incompleteness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single required parameter order_id has 0% schema description coverage and the description never mentions it at all, so nothing explains where the id comes from or its format. With low coverage the description is expected to compensate and it does not.

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 makes clear this returns the state and content of a single order (state, events, tracking, delivery_eta, refund_policy, tx_hash), which is recoverable as a read operation despite the opening being a field list rather than a verb+resource statement. It is reasonably distinct from siblings like shop.order.pay or shop.order.cancel, though it doesn't explicitly contrast them.

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?

It gives one concrete usage trigger: 'Poll this after a payment_pending answer.' Beyond that there is no guidance on when to prefer this over shop.order.quote, shop.merchant.orders_list, or other order tools, so usage is implied rather than framed.

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.