Skip to main content
Glama

Change an order's status

wp_wc_update_order_status
Destructive

WooCommerce: set one order to one of the statuses this shop knows (processing, completed, on-hold, cancelled, refunded, … plus any a plugin registers); an unknown status is refused, with the list of known ones. Only the status changes: no payment is touched and no money moves, but WooCommerce reacts as in the order screen (status e-mails, stock handling, whatever plugins attach to the transition), and "refunded" makes it record a full refund of what is still unrefunded (wc_order_fully_refunded), which shows in the shop's reports. A note is added as a private order note of its own, beside WooCommerce's transition note, on every call that carries one, also when the status was already set. Returns updated, id, status and status_unchanged; an unknown order is a not-found error. Needs manage_woocommerce and the right to edit this order (edit_shop_order), which a site can withhold for single orders; no undo point is recorded. Requires WooCommerce. Forwarded by AlphaBridge Connect to the one site this connection reaches.

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>",
      "status": "<status>"
    },
    "name": "wp_wc_update_order_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesOrder id, as wp_wc_list_orders returns it.
noteNoOptional private order note, added as an entry of its own. Omitted: no note besides WooCommerce's own.
statusYesOne of the shop's order statuses, with or without the wc- prefix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"Order id, as wp_wc_list_orders returns it."
    • changedInput schema / properties / note / description
      Previous value: -"Optional order note."New value: +"Optional private order note, added as an entry of its own. Omitted: no note besides WooCommerce's own."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond annotations: unknown statuses are refused with the known list, only status changes but WooCommerce side effects occur, 'refunded' records a full refund, notes are added even when status is unchanged, permissions are required, and no undo point is recorded. These details are fully consistent with destructiveHint=true, openWorldHint=true, and idempotentHint=false.

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 purpose is front-loaded and every sentence carries relevant operational information for a destructive WooCommerce mutation. It is dense and somewhat run-on, but the length is justified by the side effects and permission details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with no output schema, the description is highly complete: it covers side effects, refund behavior, note behavior, return fields, error behavior, permissions, dependency on WooCommerce, and undo limitations.

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 100%, so parameter documentation is already strong. The description still adds useful semantics for 'status' (unknown values refused, plugin statuses possible) and 'note' (added as its own private note on every call, even when status is unchanged).

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?

The description states a specific verb and resource: it sets one order's status. It also scopes the operation to 'one order' and lists valid statuses, making it distinguishable from wp_wc_list_orders, wp_wc_get_order, and wp_bulk_update_status.

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?

Usage is clear for a single-order status change, and 'one order' implicitly contrasts with the sibling bulk-update tool. However, it does not explicitly name wp_bulk_update_status as the alternative for multiple orders or state when not to use this tool.

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