Skip to main content
Glama

Get order details

get_order
Read-onlyIdempotent

Returns one order with items, payment, delivery details, waybill number and the statuses the order can be moved to. Contacts are masked unless reveal_contacts is true.

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_ref": "<order_ref>"
    },
    "name": "get_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_refYesOrder reference, e.g. prom:312874561
reveal_contactsNoReturn the buyer's full name, phone and e-mail instead of masked values

Output Schema

NameRequiredDescriptionDefault
refYes
ttnYes
cityYes
demoNo
emailYes
itemsYes
phoneYes
storeYes
totalYes
numberYes
statusYes
carrierYes
commentYes
paymentYes
currencyYes
customerYes
recipientYes
warehouseYes
created_atNo
store_statusYes
delivery_kindYes
payment_methodYes
payment_statusYes
recipient_phoneYes
allowed_statusesNo
contacts_revealedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds the contact-masking behavior, but that is largely duplicated from the reveal_contacts parameter description in the schema, and it adds nothing about failure modes or lookup semantics for an unknown order_ref.

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 with no filler; the response payload is front-loaded and the conditional masking rule follows immediately after. Every clause carries information an agent would otherwise have to derive.

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 rich annotations, a full output schema, and 100% parameter coverage, the description only needs to frame what the call retrieves, which it does. It could note behavior for a missing or invalid order_ref to be fully complete, but nothing essential is missing.

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 description coverage is 100% and both parameters carry their own descriptions including the order_ref format example and reveal_contacts default. The description's only parameter-adjacent statement, contacts are masked unless reveal_contacts is true, restates the schema rather than extending it, so baseline 3 applies.

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 (returns one order) and enumerates the payload: items, payment, delivery, waybill number, and allowed status transitions. The singular 'one order' implicitly separates it from list_orders, but no sibling is named explicitly, so it falls just short of a 5.

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: an agent can infer this is the single-order read path used before acting on that order. The mention of 'statuses the order can be moved to' hints at a follow-up with update_order_status, but the description never states when to prefer this over list_orders or other siblings, and gives no preconditions.

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