Skip to main content
Glama

List PrestaShop Orders

ps_list_orders
Read-onlyIdempotent

Retrieve and filter PrestaShop orders with pagination and sorting; choose full records, aggregated summary stats, or ID-only output for reporting and order lookup.

Instructions

List orders with optional filtering and pagination.

Args:

  • limit: Max orders to return (default: 50)

  • offset: Pagination offset (default: 0)

  • sort: Sort field and direction (e.g., "id_DESC", "date_add_DESC") (default: "id_DESC")

  • id_customer: Filter by customer ID

  • current_state: Filter by order state ID

  • reference: Filter by order reference

  • mode: Response shape (default: "raw"): • "raw" → full order records (default, backward-compatible) • "summary" → aggregated stats only (count, total revenue, avg basket, state breakdown) • "ids_only" → flat array of order IDs — minimal payload

Returns: Array of orders with id, reference, customer_id, state, payment method, totals, and dates.

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

Input Schema

NameRequiredDescriptionDefault
modeNoResponse shape: 'raw'=full records (default), 'summary'=aggregated stats only, 'ids_only'=flat ID arrayraw
sortNoSort field_directionid_DESC
limitNoMax orders
offsetNoPagination offset
referenceNoFilter by order reference
id_customerNoFilter by customer ID
current_stateNoFilter by order state ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real value beyond that by spelling out the three response shapes and what the summary aggregates (count, total revenue, avg basket, state breakdown) and the fields returned. It omits the maximum limit of 500 and any rate-limit or permission notes.

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

Conciseness4/5

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

Front-loaded purpose sentence followed by an Args list and a Returns line, all easy to scan. Some parameter text restates the schema nearly verbatim, which is mildly redundant but not harmful.

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 seven parameters and no output schema, the description carries the burden well by summarizing return fields and the alternate response shapes. Only the omitted upper bound on limit and the absence of sibling-routing guidance keep it from being fully complete.

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?

Schema coverage is 100%, so the baseline is 3. The description goes beyond the schema by giving concrete sort examples ("id_DESC", "date_add_DESC") and expanded semantics for each mode value, which help an agent choose parameters correctly.

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 ("List orders") plus the supported capabilities (filtering, pagination). It is clear what the tool returns, but it never distinguishes itself from the sibling ps_get_customer_orders even though it also accepts id_customer, leaving potential overlap unresolved.

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 mode bullets effectively explain when to pick raw vs summary vs ids_only, which is genuine usage guidance. However, there is no guidance on when to prefer this tool over ps_get_customer_orders or other sibling list tools, and no mention of prerequisites or typical workflows.

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

Deploy Server

Other Tools