Skip to main content
Glama

get_order

Fetch complete normalized details for a WooCommerce order by integer ID, including line items, prices, status, and customer notes. Returns NOT_FOUND when the order does not exist.

Instructions

Retrieve complete normalized details for a specific WooCommerce order by its integer ID, including line items, prices, status, and customer notes. Returns NOT_FOUND error if order does not exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYesThe unique positive integer ID of the WooCommerce order to retrieve.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the NOT_FOUND failure mode for a missing order, which is real behavioral context, but says nothing about authentication requirements, rate limits, or whether the read is side-effect free.

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 tight sentences, front-loaded with the core action and payload before the error caveat. No filler or redundancy; every clause adds information.

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 responsibly summarizes the return payload (line items, prices, status, customer notes) and the error case, which is enough for a single-param read tool. Only auth/permission context is absent, a minor gap given the simple surface.

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 single order_id parameter is fully documented in the schema with type and minimum. The description only restates 'integer ID' and adds no format, range, or lookup nuance beyond the schema, so baseline 3 applies.

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 (Retrieve) and resource (WooCommerce order), scoped by integer ID, and enumerates the payload (line items, prices, status, customer notes). This clearly separates it from search_orders and get_product without needing to open any 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?

The 'by its integer ID' framing implies the when-to-use case (you already have an ID) versus the search sibling, but the tool never states this explicitly or names search_orders as the alternative when only a query is available. Usage is implied rather than guided.

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