Skip to main content
Glama

get_order

Read-onlyIdempotent

Retrieve complete details for a single order—line items, customer, payments with failure codes, refunds, masked license keys, and a merged timeline—to investigate orders or failed payments.

Instructions

Everything about one order: line items, the customer, payments (with the provider's failure_code and failure_message when a payment failed), refunds, license keys (masked) and a timeline merged from the audit log, payments, refunds and payment-provider webhooks. Start here to investigate an order or a failed payment.

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_id": "<order_id>"
    },
    "name": "get_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order number as customers and admins see it, e.g. "SF-10042", or the numeric order id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive and closed-world behavior, so the description is not carrying the safety burden. It still adds genuinely useful context beyond them: license keys are masked, and the timeline is a merged view assembled from the audit log, payments, refunds and provider webhooks, which tells the agent to expect composite provenance.

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?

Two sentences, front-loaded with the scope statement, then the usage cue. The parenthetical about failure_code and failure_message is a slightly dense interruption but it is informative rather than filler.

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 does the work of describing the return payload by enumerating its sections, which is the right call for a detail-fetch tool. Nothing critical is missing for a single-parameter read; only minor details like response size or ordering are absent.

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 the single parameter already documents that it accepts the human-visible order number (e.g. "SF-10042") or the numeric id. The description adds nothing about the parameter, so the baseline of 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?

"Everything about one order" plus an explicit enumeration of the sections returned (line items, customer, payments, refunds, license keys, timeline) makes the resource and its breadth unambiguous. It is distinguishable from list-style siblings such as revenue_summary or search_orders, though it never names a sibling explicitly.

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

Usage Guidelines4/5

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

"Start here to investigate an order or a failed payment" gives a clear entry-point condition for two concrete scenarios. It stops short of stating when not to use it or which sibling to prefer for a list/search result, so the routing guidance is contextual rather than exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.