Skip to main content
Glama

List orders

list_orders
Read-only

Retrieve and filter Shopify orders by status, date, or SKU using search syntax, with pagination and sorting. Returns order details like totals and line items, not customer data.

Instructions

Orders: number, dates, payment and fulfilment status, totals and line items. No customer details.

query uses Shopify's search syntax (https://shopify.dev/docs/api/usage/search-syntax), e.g. "created_at:>=2026-01-01", "financial_status:paid", "fulfillment_status:unfulfilled", "status:open", "sku:ABC123".

Orders older than 60 days are only visible when the app has the read_all_orders scope. For sums over a period (sales per month, top products), run_analytics_query is the better tool: this one lists orders, it does not add them up.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoThe next_cursor of the previous page, to continue from it.
firstNoHow many to return, 1-100. Default 25.
queryNoSearch filter in Shopify's search syntax.
reverseNoReverse the sort order (newest or largest first).
sort_keyNoWhat to sort by. Default is the order's processed date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds important non-obvious behavior: no customer details are returned, orders older than 60 days require read_all_orders scope, and this tool does not aggregate. It also inventories returned field categories, which is valuable because no output schema is provided.

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 front-loaded with what an order contains, followed by query syntax, then the permission caveat and alternative-tool routing. The examples and link earn their place, and no sentence merely repeats the schema.

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?

For a read-only listing tool with no output schema but complete input-schema coverage, the definition covers returned field categories, search syntax, permission-based visibility, and the main alternative for aggregation. Pagination is left to the schema, which is reasonable, though the absence of an output schema means return structure could be slightly more explicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already has 100% description coverage, so the baseline is 3. The description goes beyond that for the query parameter by linking to Shopify search syntax and giving five concrete filter examples, though it does not add similar detail for pagination or sorting parameters that the schema already documents.

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 definition identifies the resource (orders) and the exact data returned: number, dates, payment and fulfilment status, totals, and line items. It also explicitly distinguishes the tool from run_analytics_query by stating that this tool lists orders and does not aggregate them.

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

Usage Guidelines5/5

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

It gives explicit routing guidance by naming run_analytics_query and the condition that selects it: sums over a period such as sales per month or top products. It also supplies concrete Shopify search filters and warns about the 60-day visibility limit, leaving little ambiguity about when and how to use the tool.

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