Skip to main content
Glama

Get PrestaShop Order Details

ps_get_order_details
Read-onlyIdempotent

Retrieve complete order details by ID, including ordered products, delivery address, carrier, payment method, and totals for order review or support.

Instructions

Get complete details of an order including ordered products, delivery address, carrier, and payment info.

Args:

  • id: Order ID (required)

Returns: Full order with products list (name, reference, quantity, unit price, total), delivery address, carrier, payment method, and all totals.

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_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesOrder ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.6/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 a closed-world scope, so the safety profile needs no restating. With no output schema, the description usefully compensates by enumerating the return payload, but it says nothing about failure modes (invalid or missing order ID), permissions, or pagination/size limits for orders with many products.

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

Conciseness5/5

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

Front-loaded one-sentence summary followed by explicit Args and Returns sections, with no filler. The Args block mildly duplicates the schema, but the overall shape is scannable and every sentence carries information.

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 no output schema, the description supplies the essential missing piece — what the response contains — so an agent knows what it will receive. The one substantive omission for selection is the relationship to the near-identical ps_get_order 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?

The single parameter is fully documented in the schema (100% coverage, positive-integer constraint), and the description only restates 'id: Order ID (required)'. It adds no meaning beyond the schema — no hints about where to obtain a valid order ID — so the 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 ('Get complete details of an order') and enumerates the contents: products, delivery address, carrier, payment info. The purpose is unambiguous, though it never distinguishes itself from the sibling ps_get_order, which sounds like it could return the same thing.

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?

Usage is only implied by the tool's name and the phrase 'complete details' — an agent can infer this is the rich single-order fetch, but there is no explicit when-to-use, no mention of ps_get_order as the alternative, and no note about when the narrower ps_list_order_payments or ps_list_order_invoices siblings would suffice.

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