Skip to main content
Glama

Get PrestaShop Cart

ps_get_cart
Read-onlyIdempotent

Retrieve full details of a shopping cart by ID, including customer, carrier, cart rows with products, and dates. Use it to inspect cart contents and purchase data.

Instructions

Get full details of a shopping cart by ID, including cart rows (products).

Args:

  • id: Cart ID (required)

Returns: Complete cart data with customer, carrier, products, and dates.

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": {
      "id": "<id>"
    },
    "name": "ps_get_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCart ID

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=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the prose. The description does add value by disclosing the shape of the result ('customer, carrier, products, and dates'), but says nothing about permissions, rate limits, or behavior when the cart ID does not exist.

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?

The core purpose is front-loaded in the first sentence, followed by a compact Args/Returns block with no filler or marketing language. The Args line is largely redundant with the schema, a minor cost in a definition this short.

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 one-parameter read tool with no output schema, the description compensates by naming the major fields returned (customer, carrier, products, dates). The remaining gap is behavioral edge cases such as invalid or missing cart IDs, which is modest for a read-only getter of this complexity.

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% and the single parameter carries its own description plus an exclusiveMinimum constraint, so the schema does the work. The description's 'id: Cart ID (required)' restates the schema verbatim without adding format, range, or lookup semantics beyond it, which is the expected baseline for a fully documented single parameter.

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?

The description opens with a specific verb and resource ('Get full details of a shopping cart by ID') and enumerates the payload ('cart rows (products)'), so an agent knows exactly what it retrieves. It does not, however, contrast itself with nearby siblings such as ps_get_order or ps_abandoned_cart_analysis, leaving the boundary between a cart and an order implicit.

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?

There is no when-to-use or when-not-to-use guidance; the only usage signal is the '(required)' marker on id, which the schema already states. Nothing tells the agent when a cart lookup is the right call versus fetching the resulting order, which matters given how many order- and cart-related siblings exist.

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