Skip to main content
Glama

Export orders as CSV

export_orders
Read-onlyIdempotent

Orders as CSV, newest first, one line per item (reference as list_orders (area store) gives it, payment_id, amounts, buyer, the item’s choices and personalization (the buyer’s words), ship-to address, fulfilment, tracking, delivery choice, source (via buy link or AI assistant), buyer_details (when removed), mode (test|live)): {count, total, csv, next?}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "siteId": "<siteId>"
    },
    "name": "export_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoPart of the order's reference or the buyer's name or email
limitNoHow many orders (default 200)
sinceNoOnly orders from this date or time on (ISO)
cursorNonext from the previous answer
siteIdYesSite id (from list_sites)
statusNoOnly orders with this payment status, or shipped, to_ship, to_collect, collected

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description credits itself by adding real behavior: newest-first ordering, one line per item (finer granularity than one order per row), the full output shape {count, total, csv, next?} revealing pagination, and special cases like buyer_details (when removed) and mode (test|live). These go meaningfully beyond the annotation safety profile.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key summary is front-loaded ("Orders as CSV, newest first, one line per item"), but the column list is delivered as a single deeply nested parenthetical run-on that is hard to parse. It is information-dense with little waste, yet readability suffers from the heavy nesting.

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 compensates by spelling out the return shape {count, total, csv, next?}, the row granularity, ordering, and the meaning of values like mode and removed buyer_details. For a 6-param export tool it is largely complete, missing only scale/rate limits or how large exports are handled.

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%, so the schema already documents all six parameters and sets a baseline of 3. The description adds only marginal meaning, mainly clarifying that q matches the reference format as list_orders returns it and connecting the cursor param to the returned next field. No format or constraint detail is added for limit, since, or status.

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 a specific verb and resource with format and ordering upfront: "Orders as CSV, newest first, one line per item," and enumerates the columns produced. It distinguishes itself from list_orders by acting as the CSV export of that data rather than the JSON listing. It does not explicitly contrast with export_leads/export_members, but the resource specificity carries it.

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: as the CSV counterpart to list_orders, and the {next?} hint signals pagination via cursor. There is no explicit when-to-use / when-not, and no guidance on choosing between export_orders and list_orders or on how limit interacts with pagination. Adequate but leaves the selection condition to inference.

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