Skip to main content
Glama

Update order status

update_order_status
Destructive

Move an order to a new status by externalId. Only valid transitions from the current status are allowed. Use list_orders to find the externalId and get_order to see the current status. The result echoes the operating workspace.

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": {
      "status": "<status>",
      "externalId": "<externalId>"
    },
    "name": "update_order_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYesThe new order status. Only valid transitions from the current status are accepted. Allowed values: pending, confirmed, processing, ready_to_ship, shipped, delivered, cancelled, refunded.
externalIdYesThe order externalId returned by list_orders or create_order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / status / description
      Previous value: -"The new order status. Only valid transitions from the current status are accepted. Allowed values: pending, confirmed, processing, shipped, delivered, cancelled, refunded."New value: +"The new order status. Only valid transitions from the current status are accepted. Allowed values: pending, confirmed, processing, ready_to_ship, shipped, delivered, cancelled, refunded."
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "pending",
      -  "confirmed",
      -  "processing",
      -  "shipped",
      -  "delivered",
      -  "cancelled",
      -  "refunded"
      -]New value: +[
      +  "pending",
      +  "confirmed",
      +  "processing",
      +  "ready_to_ship",
      +  "shipped",
      +  "delivered",
      +  "cancelled",
      +  "refunded"
      +]
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed1 schema field changed
    • addedInput schema / properties / status / description
      Added value: +"The new order status. Only valid transitions from the current status are accepted. Allowed values: pending, confirmed, processing, shipped, delivered, cancelled, refunded."
  4. Changed1 schema field changed
    • addedInput schema / properties / externalId / description
      Added value: +"The order externalId returned by list_orders or create_order."
  5. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is covered; the description adds the non-obvious constraint that only valid transitions from the current status are accepted and that the result echoes the operating workspace. It stops short of saying what happens on an invalid transition (error vs silent no-op) or which transitions are terminal.

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?

Three short sentences, front-loaded with the action and identifier, then the constraint, then the discovery hints. No filler and nothing redundant with the title.

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 two-parameter mutation with no output schema, the description covers the action, the lookup path, the transition constraint, and a one-line note on the response. The only gap is error behavior for illegal transitions, which matters for a destructive, non-idempotent call.

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?

Schema description coverage is 100%, with the enum and the externalId provenance already documented in the schema. The description restates the transition constraint and the externalId key but adds no format, casing, or lookup detail beyond what the schema provides, so baseline 3 is appropriate.

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 ("Move an order to a new status") plus the identifier used to locate it (externalId), which cleanly separates it from update_order_item (which touches line items) and get_order (read-only). An agent can identify the operation 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 Guidelines4/5

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

Explicitly routes the agent to list_orders for discovering the externalId and get_order for inspecting the current status, which are real prerequisite steps. It does not explicitly exclude or compare against update_order_item, so it falls short of full when/when-not guidance.

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