Skip to main content
Glama

HamroLink Business OS MCP Server

commerce.order_update_status

Destructive

Updates ONLY the fulfillment lifecycle status of an e-commerce or store order (e.g. pending, confirmed, preparing, ready_for_pickup, out_for_delivery, shipped, delivered, completed, cancelled). Never modifies paymentStatus. Automatically generates a digital sale invoice when confirming, idempotently restocks inventory upon cancellation, and sends a notification email to the customer.

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": {
      "orderId": "<orderId>",
      "status": "<status>"
    },
    "name": "commerce.order_update_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYesNew order fulfillment lifecycle status
orderIdYesOrder ID (e.g. 'ORD-123456-789') or MongoDB 24-character _id
estimatedTimeNoOptional estimated delivery or pickup time
sendCustomerEmailNoWhether to send an email notification to the customer with digital invoice receipt (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say non-read-only, destructive, open-world; the description goes well beyond by naming three concrete side effects: invoice generation on confirm, idempotent inventory restock on cancel, and a customer email. The idempotency note is especially valuable for a destructive mutation, telling the agent retries are safe.

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?

Three tight, front-loaded sentences with the scope constraint first and side effects after. The full ten-value status enumeration duplicates the schema's enum and is the one stretch of redundancy, though the parenthetical examples do aid scanning.

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 mutation with no output schema, the description covers the critical behavior (what gets created/restocked/emailed) and what is deliberately left untouched. It does not indicate what the call returns or how failures/invalid transitions are reported, which is the remaining gap.

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%, so the schema already documents all four parameters including the email default and the orderId format. The description adds the semantic link between confirming and invoice generation, but says nothing about 'estimatedTime' or how 'sendCustomerEmail' interacts with the invoice behavior beyond what the schema states.

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 ('Updates ... the fulfillment lifecycle status of an e-commerce or store order') and scopes it tightly with 'ONLY', then explicitly excludes the payment-status dimension. This lets an agent distinguish it from commerce.order_update_payment_status without opening either 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?

The 'Never modifies paymentStatus' clause plus the enum examples make the boundary against the payment-status sibling clear, and the cancellation/confirmation side effects signal when those paths are triggered. It stops short of stating prerequisites (e.g. whether status transitions must be sequential) or naming an alternative for non-fulfillment changes.

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.