Skip to main content
Glama

Get PrestaShop Order

ps_get_order
Read-onlyIdempotent

Fetch complete order details by ID, including products, payment, shipping, totals, customer, state, and dates for order review or support.

Instructions

Get full details of an order by ID, including order rows (products), payment info, and shipping details.

Args:

  • id: Order ID (required)

Returns: Complete order data with reference, customer, state, payment, totals, order rows (products with quantities and prices), 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_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesOrder ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds value beyond that by disclosing the response shape (reference, customer, state, payment, totals, rows, dates), which no output schema provides. It omits what happens for an invalid or missing ID, but the payload disclosure is substantive.

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?

Short and front-loaded: a one-sentence purpose followed by args and returns. The args line mildly duplicates the schema without adding information, but overall there is little waste.

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 single-parameter read tool with full annotation coverage, the definition supplies purpose and return contents, which is enough to call it correctly. The only missing element is disambiguation from the similarly named sibling.

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 is already documented in the schema. The description only restates 'id: Order ID (required)', adding no format or constraint detail beyond the schema's exclusiveMinimum.

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 ('Get full details of an order by ID') and enumerates the payload contents: order rows, payment info, shipping details. It does not differentiate itself from the sibling 'ps_get_order_details', leaving an agent to guess which of the two to call.

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?

Usage is only implied by 'by ID' — there is no explicit when-to-use, when-not, or named alternative. With a near-identical sibling present, the absence of any routing guidance is a real gap.

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