Skip to main content
Glama

Look Up Order

lookup_order
Read-onlyIdempotent

Look up a single order by number and return its line items, margin, fulfillment state, and refund history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_numberYesOrder number as shown in the store, with or without a leading "#" (for example "1001" or "#1001").

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaNoPer-skill parameters and totals, e.g. the timeframe the report was run for.
rowsNoThe report body. Absent when the skill returns summary only.
_metaNo
notesNoPlain-language context, including why a report came back empty.
summaryNoHeadline figures for the report, in display order.
_messageNo
warningsNoConditions that make the figures less reliable. Relay these.
_truncatedNo
_tenant_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is known. The description adds the specific return fields (line items, margin, fulfillment state, refund history), which is valuable context beyond the annotations. It does not discuss auth, rate limits, or error behavior, but for a read-only lookup that is acceptable.

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?

The description is a single sentence that front-loads the action and resource, then lists the return contents. Every word earns its place; there is no fluff or redundancy.

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 an output schema present and a single well-documented parameter, the description fully covers what an agent needs to call the tool correctly. It states the purpose and the return fields, and the schema handles parameter details. No significant information 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 coverage is 100%, and the parameter description in the schema already explains the format (with or without leading '#'). The tool description does not add any parameter-specific information beyond what the schema provides, so the baseline of 3 is appropriate.

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 clearly states a specific verb ('look up'), resource ('a single order by number'), and lists the returned data (line items, margin, fulfillment state, refund history). This distinguishes it from search_orders or report tools; an agent can immediately tell it is for retrieving a specific order.

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?

The description implies usage when you have a specific order number and need its details, but it does not explicitly name alternatives or exclusion conditions. It provides clear context ('single order') but lacks an explicit when-not-to-use statement, so it falls short of a 5.

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