Skip to main content
Glama

get_order

Read-only

Retrieve a single WooCommerce order by ID, including line items, addresses, totals, shipping, refunds, and the customer note for order review or support.

Instructions

One order in full: line items, addresses, totals, shipping, refunds and the customer note.

Input Schema

NameRequiredDescriptionDefault
order_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds the scope of the payload (line items, addresses, totals, refunds, customer note), which helps an agent decide whether this call is sufficient, but says nothing about not-found behavior, permissions, or pagination.

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?

One front-loaded sentence that enumerates the payload and stops. No filler, no repetition of the tool name.

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?

An output schema exists, so return values need no prose. For a one-parameter read tool with annotations covering safety, the description is nearly complete; only error/empty-result behavior is unaddressed.

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 0% and the description never mentions order_id, so it adds no parameter meaning. The single required integer named order_id is largely self-explanatory, which keeps this at the minimum-viable 3 rather than lower.

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 the resource precisely ('One order in full') and enumerates the returned sections, which implicitly contrasts with the list_orders sibling. It never names a competing sibling explicitly, so a 4 rather than 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: 'One order in full' suggests fetching detail for a known order_id rather than browsing. There is no explicit when-to-use, no mention of list_orders as the alternative, and no prerequisite (e.g., needing an order_id from a list call).

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