Skip to main content
Glama

Get order

get_order
Read-only

Fetch full order detail in the selected workspace by externalId, including line items, payments, shipments, returns and shipByAt (recorded ISO ship-by deadline, or null when unknown; not the actual dispatch time). Use list_orders first when you only know the customer or date.

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

Input Schema

NameRequiredDescriptionDefault
externalIdYesThe order externalId returned by list_orders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • addedInput schema / properties / externalId / description
      Added value: +"The order externalId returned by list_orders."
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower. The description still adds real context beyond them by disclosing the shape of the returned record and clarifying a semantic trap: shipByAt is the recorded ISO ship-by deadline, not the actual dispatch time, and may be null.

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

Conciseness5/5

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

Two dense sentences, front-loaded with the core action and return contents before the disambiguation clause. Every clause carries information an agent would otherwise have to guess at; nothing is redundant.

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?

With no output schema, the description compensates by enumerating the returned record's components and explaining the one ambiguous field. For a single-parameter, read-only lookup whose annotations cover safety, nothing an agent needs in order to call it correctly is missing.

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 the single parameter is described, so baseline is 3. The description modestly reinforces the parameter's meaning by tying externalId to the value returned by list_orders, but it does not add format details or failure behavior for an unknown id, keeping it just above baseline.

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 ('Fetch full order detail ... by externalId') and enumerates exactly what the payload contains: line items, payments, shipments, returns, shipByAt. This makes it clearly distinguishable from list_orders and from the mutating siblings like update_order_item.

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?

Explicitly routes the agent: 'Use list_orders first when you only know the customer or date.' That names the alternative and the condition that selects it, so the agent knows both when to use this tool and when to use the sibling instead.

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