Skip to main content
Glama

modx_ms2_update_order

Update a miniShop2 order to change its status, payment, or delivery. Changing the status triggers the order's status-change logic.

Instructions

Update a miniShop2 order — typically to change its status (triggers ms2 status-change logic), delivery or payment.

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": "modx_ms2_update_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
statusNoNew order status id.
paymentNo
deliveryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a genuinely important behavioral trait: status changes trigger ms2 status-change logic (side effects such as emails/stock). It omits other material behavior—whether the update is partial, whether unspecified fields are preserved, and what permissions are required for a mutation.

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?

One tight sentence with the resource front-loaded and no filler. The important trigger warning sits in a parenthetical rather than being surfaced more prominently, but nothing is wasted.

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

Completeness2/5

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

For a four-parameter mutation tool with no annotations, no output schema, and 75% undocumented parameters, the description does not do enough: partial-update semantics, field ID meanings, and required permissions are all left unstated.

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

Parameters2/5

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

Schema coverage is only 25% (only `status` is described), so the description must compensate. It merely restates the field names (status, delivery, payment) without explaining that delivery/payment are method IDs, what `id` refers to, or whether omitted fields stay untouched.

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+resource ("Update a miniShop2 order") and names the typical fields touched (status, delivery, payment). It does not distinguish itself from siblings like modx_ms2_get_order or modx_ms2_list_orders, so the agent must infer the read/write split itself.

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?

"typically to change its status" implies the primary use case, which is helpful context. However, there is no explicit when-not-to-use guidance and no alternative tool is named (e.g. use modx_ms2_get_order to read before mutating), leaving routing to inference.

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