Skip to main content
Glama

Pridly — AI copilot for PrestaShop

Update an order

update_order
Destructive

Changes an order's status and/or adds a note (private, (private notes only)). Preview first, then confirm. Always show the preview to the user and get their explicit approval before calling again with confirm=true and the preview_id. Refunds must be done in PrestaShop itself. To apply it later instead of now, call with confirm=true, the preview_id AND apply_at (the store's local time, YYYY-MM-DDTHH:MM).

Input Schema

NameRequiredDescriptionDefault
noteNo
storeNoStore address or id. Leave empty if you have only one store.
statusNo
confirmNoSet true ONLY after the user approved the preview.
apply_atNoOnly with confirm=true: apply later. Store local time, YYYY-MM-DDTHH:MM, between 5 minutes and 90 days from now.
order_idNo
preview_idNoThe preview_id returned by the preview call (required with confirm=true).
note_to_customerNotrue = the customer is emailed the note.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true; the description adds substantial value on top by disclosing the mandatory two-step preview/confirm protocol, the preview_id handshake, the 5-minute-to-90-day window for apply_at, and the refund exclusion. It loses a point for the garbled phrase 'a note (private, (private notes only))', which muddies whether notes are always private or conditional on note_to_customer.

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 with the core action and workflow, and nearly every sentence carries operational meaning. The final sentence is a dense run-on mixing confirm, preview_id and apply_at, and the doubled-parenthesis note phrase is sloppy.

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 destructive, open-world mutation with annotations covering the safety profile and no output schema, this gives the agent the full call sequence, constraints, and exclusions. It omits what the preview response actually contains (what to show the user) and whether status/order_id are effectively required, which a careful agent would still need to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 63%, so the description must carry part of the load; it does explain the confirm/preview_id pairing and the apply_at bounds and time semantics beyond the schema's field-level text. It still never explains status enum consequences or the store parameter's role, so it only partly compensates for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — changes an order's status and/or adds a note — and rules out one adjacent operation by declaring refunds must be handled in PrestaShop. An agent can distinguish this mutation from the read-side siblings (get_order, find_orders) without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit workflow (preview first, then confirm), the human-in-the-loop requirement (always show the preview, get explicit approval before calling with confirm=true), the deferred-application variant, and the exclusion (refunds done elsewhere). No inference is left to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources