Skip to main content
Glama

Update PrestaShop Order Status

ps_update_order_status

Update an order's status by creating a new order history entry; requires POST-enabled, non-read-only PrestaShop Webservice access.

Instructions

Change the status of an order by creating a new order history entry.

⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.

Args:

  • id_order: Order ID (required)

  • id_order_state: New state ID (use ps_list_order_states to get valid IDs)

Returns: Confirmation with new history entry ID.

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_order": "<id_order>",
      "id_order_state": "<id_order_state>"
    },
    "name": "ps_update_order_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
id_orderYesOrder ID
id_order_stateYesNew order state ID
confirmation_tokenNoConfirmation token for destructive operations

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false and destructiveHint=false, but the description earns credit by disclosing an auth/permission prerequisite and by making the append-only mechanism explicit, which is consistent with idempotentHint=false. The notable gap is the undocumented confirmation_token requirement for destructive operations, which the agent would only discover from the schema.

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, followed by a clearly demarcated prerequisite warning and a short Args block; nothing is buried. The Args entries largely restate schema descriptions, so a small amount of the text does not earn its place beyond the ps_list_order_states pointer.

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?

No output schema exists, and the description compensates with a return summary ('Confirmation with new history entry ID'), plus it covers the auth prerequisite. The one missing piece is guidance on when a confirmation token is needed, which matters for a write tool with a confirmation-token parameter.

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?

With 100% schema description coverage the baseline is 3, and the description adds genuine value by telling the agent where valid id_order_state values come from (ps_list_order_states), which the schema cannot express. It does not explain the third parameter, confirmation_token, leaving one operational detail unaddressed.

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 ('Change the status of an order') and adds the underlying mechanism ('by creating a new order history entry'), which tells the agent the change is an append rather than an in-place mutation. It also points at the sibling ps_list_order_states, so the tool is distinguishable from the read-only order siblings without opening a schema.

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

Usage Guidelines4/5

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

Gives a clear operational prerequisite ('Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key') and routes the agent to ps_list_order_states for valid state IDs, which is real when-to-use guidance. It stops short of explicit exclusions (e.g. do not use this to edit order lines or to bulk-update) and says nothing about the confirmation_token parameter, so it is clear but not complete.

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