Skip to main content
Glama

List PrestaShop Carts

ps_list_carts
Read-onlyIdempotent

List shopping carts with optional pagination and customer ID filters to analyze abandoned carts and review cart details such as currency, carrier, and dates.

Instructions

List shopping carts with optional filtering. Useful for abandoned cart analysis.

Args:

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

  • offset: Pagination offset (default: 0)

  • id_customer: Filter by customer ID

Returns: Array of carts with id, customer_id, currency, carrier, 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_carts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax items
offsetNoPagination offset
id_customerNoFilter by customer ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by stating what is returned (id, customer_id, currency, carrier, dates) — important since there is no output schema — though it omits pagination limits and total-count behavior.

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 description is short and front-loaded with purpose, but the Args block duplicates defaults (limit 50, offset 0) already present in the schema, so a chunk of text does not earn its place. The Returns line, by contrast, is doing real work.

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 simple three-parameter list tool with no output schema, the description covers purpose, filtering options, and return shape, which is close to sufficient. Missing pagination semantics (whether more results exist beyond limit) is the main residual gap.

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 three parameters and their defaults. The Args block largely restates limit/offset/id_customer without adding format or edge-case meaning, so 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 shopping carts') plus the scope of optional filtering, which is enough to identify it among the ps_list_* siblings. It does not explicitly distinguish itself from the sibling ps_abandoned_cart_analysis, which is exactly the use case it cites, leaving mild ambiguity.

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?

'Useful for abandoned cart analysis' implies a usage context but gives no explicit when-to-use or when-not-to-use rules. It never routes the agent to ps_abandoned_cart_analysis for that same purpose, so the agent must infer which tool is the right entry point.

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