Skip to main content
Glama

getOrders

Read-only

List shop orders. Omit locationRef, customerRef and userRef to list across all locations, or provide one to scope the list. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Filter by categoryRef from getShopCategories, productRef from getProducts, createDate or status.

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": "getOrders"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of orders per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
statusNoFilter by order status: 'pending' placed, payment still processing; 'new' placed and paid, awaiting fulfillment; 'inProgress' being fulfilled; 'completed' fulfilled; 'canceled' canceled by the customer or an admin. Defaults to new, inProgress and completed. Comma-separated, one or more of: canceled, completed, inProgress, new, pending.
userRefNoUUID of the user whose orders to list.
createDateNoFilter by create date (createDate). Provide gte, lte ISO datetimes.
productRefNoFilter by the products in the order. Comma-separated, one or more UUIDs.
categoryRefNoFilter by the shop categories of the products in the order. Use none for products without a category. Comma-separated, one or more UUIDs or "none".
customerRefNoUUID of the customer whose orders to list.
locationRefNoUUID of the location whose orders to list. Omit locationRef, customerRef and userRef to list orders across every location of the network, newest first.
nextPageTokenNoPagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.

Output Schema

NameRequiredDescriptionDefault
ordersYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / orders / items / properties / payment / properties / method / properties / paymentGateway / properties / inPerson
      Added value: +{
      +  "description": "Present and true when an administrator took the payment in person with Tap to Pay on their phone, which has no checkout page to complete.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / orders / items / properties / bookingRef
      Added value: +{
      +  "description": "ID of the booking the order's add-ons were bought with. Absent for an order bought on its own.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile needs no restatement and the description correctly avoids it. What the description adds is limited to the scoping rule, which is largely mirrored in the locationRef schema text; it says nothing extra about pagination limits, ordering guarantees, or result volume beyond what the schema already documents.

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?

Three sentences, front-loaded with the action and the scoping decision, then the ref-resolution helpers, then the filter list. Every clause carries routing or scoping information; there is no filler or restatement of the title.

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 an output schema present and full schema coverage, the description only needs to carry scoping and dependency routing, which it does well. A small gap remains in that pagination and default result-window behavior live only in the schema, but nothing an agent needs to call the tool correctly is 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 schema already spells out the status enum values, date range fields, comma-separated multi-value syntax, the "none" category sentinel, and the nextPageToken continuation rule. The description only names which parameters are filters, adding essentially no semantics the agent could not read from the schema.

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?

"List shop orders" gives a specific verb and resource, and the following sentence defines the scoping semantics (omit the three refs for network-wide, supply one to narrow). An agent can distinguish this from the getCustomers/getLocations/getProducts reference lookups without opening 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 Guidelines5/5

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

It states the primary decision rule explicitly (omit locationRef/customerRef/userRef for all locations vs. provide one to scope) and routes the agent to the right dependency tools for resolving each ref type (getLocations/getLocation, getCustomers, getShopCategories, getProducts). No alternatives are implied but left unexplained.

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