Skip to main content
Glama

List PrestaShop Customers

ps_list_customers
Read-onlyIdempotent

Retrieve and filter store customers by active status, email, name, or newsletter subscription, with sorting and pagination controls for targeted results.

Instructions

List customers with optional filtering and pagination.

Args:

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

  • offset: Pagination offset (default: 0)

  • sort: Sort field and direction (default: "id_DESC")

  • active: Filter by active status

  • email: Filter by exact email

  • search_name: Search in customer names (partial match)

  • newsletter: Filter by newsletter subscription

Returns: Array of customers with id, firstname, lastname, email, active status, newsletter, 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_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort field_directionid_DESC
emailNoFilter by exact email
limitNoMax customers
activeNoFilter by active status
offsetNoPagination offset
newsletterNoFilter by newsletter subscription
search_nameNoSearch in customer lastname

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is fully covered. The description adds useful behavior beyond that: pagination defaults and the shape of the returned customer records, which matters because there is no output schema. It stops short of stating total counts, ordering guarantees, or result caps.

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 a compact Args list and a Returns line; no filler. The Args section duplicates schema descriptions, which is mildly redundant but keeps the definition self-contained.

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?

Seven optional parameters, no output schema, and rich annotations — the description covers defaults, filter semantics, and return fields, which is close to complete. Missing only edge details such as the maximum limit cap and whether offset/limit interact with large result sets.

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%, so the schema already documents all seven parameters with defaults. The description largely restates the same defaults and fields, adding only that search_name is a 'partial match' on 'customer names' (the schema says 'lastname' specifically) — a small clarification that also introduces slight ambiguity. Baseline 3 applies.

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 customers with optional filtering and pagination.' Combined with the tool name, an agent can tell this apart from sibling list tools (ps_list_addresses, ps_list_orders, etc.) by resource alone, though the description never explicitly contrasts with them.

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

Usage Guidelines2/5

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

No statement about when to use this tool versus alternatives, no prerequisites, and no exclusions. Filter names imply a use case (lookup by email or name), but the agent must infer which filter selects which scenario, and the distinction between email (exact) and search_name (partial) is only implied.

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