Skip to main content
Glama

Get order

get_order
Read-onlyIdempotent

Inspect the public record of one storefront order: line items, fulfillment, refunds, and event history. The customer's contact address is masked (j••••@example.com) and no payment identifiers are returned. Money amounts are integers in the currency's minor units (Stripe convention: 2500 = $25.00 USD, 1999 = ¥1999 JPY), paired with the order's currencyCode. For multi-step Replo work, call skills with name "replo".

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

Input Schema

NameRequiredDescriptionDefault
orderIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / orderId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. 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"
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description still adds substantive behavior: contact addresses are masked in a shown format, no payment identifiers are returned, and amounts are minor-unit integers keyed to currencyCode with an explicit Stripe-convention example. That is exactly the kind of interpretation-critical context annotations cannot convey.

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?

Three tight sentences, front-loaded with the scope and content list, followed by masking/payment guarantees and the numeric-unit convention. The closing cross-reference to the "skills" tool is slightly off-topic for this definition and could be trimmed or moved, but nothing is verbose.

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 no output schema, the description usefully enumerates return contents, redaction behavior, and money formatting, which is the right coverage for a read tool. It stops short of error behavior for an unknown orderId, whether event history is paginated or bounded, and any auth/permission expectations, leaving modest gaps for a complex record.

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 0% for the single orderId parameter, so the description must carry the burden and largely does not: "one storefront order" implies the parameter's meaning but never states the UUID format already in the schema or where a valid orderId comes from. It clarifies data shape rather than parameter semantics.

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?

The description names a specific verb ("Inspect") and a precisely scoped resource ("the public record of one storefront order"), then enumerates the returned facets: line items, fulfillment, refunds, event history. An agent can tell instantly that this is a single-order read, not a list or search, without inspecting 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 by the word "one" and the required orderId, which signals single-order lookup rather than browsing. The only explicit routing guidance is the trailing pointer to the "skills" tool for multi-step Replo work, which is useful but unrelated to choosing between order-retrieval options; no when-not-to-call or prerequisite (e.g. needing a valid orderId source) is given.

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