Skip to main content
Glama

Change order status

update_order_status
DestructiveIdempotent

Changes the status of a store order. Accepts a unified status or a store-specific status id; Rozetka transitions are checked against the statuses allowed for the order.

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

Input Schema

NameRequiredDescriptionDefault
reasonNoProm.ua cancellation reason: not_available, price_changed, buyers_request, not_enough_fields, duplicate, invalid_phone_number, less_than_minimal_price, another
statusYesUnified status (new, processing, shipped, delivered, completed, canceled, returned) or the store's own status id from get_order
commentNoComment (Prom 'another' reason text, manager comment)
order_refYesOrder reference, e.g. rozetka:745123456

Output Schema

NameRequiredDescriptionDefault
demoNo
noteNo
statusYes
order_refYes
status_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=true, idempotentHint=true), so the description's job is to add context. It does: it discloses that Rozetka transitions are validated against the statuses allowed for the order, which is a real behavioral constraint an agent cannot infer from the annotations. It does not say what happens when validation fails or whether a canceled order can be reverted.

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?

Two sentences, no filler, and the core action is front-loaded before the status-mode detail. Every clause carries information an agent would otherwise have to guess.

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?

With an output schema present and rich annotations, the description needn't explain return values, and it covers the key semantic wrinkle (dual status modes plus store-specific transition validation). The remaining gap is failure behavior and any coupling between status=canceled and the reason parameter, which the description never connects.

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 enumerated Prom.ua reason values. The description only restates the status parameter's dual mode (unified status vs. store-specific id) without adding format or constraint detail beyond the schema, so the baseline 3 applies.

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?

The description opens with a specific verb+resource ("Changes the status of a store order"), which is unambiguous and clearly distinct from read-oriented siblings like get_order or list_orders. It stops short of explicitly naming an alternative or stating the read/write boundary, so it lands just below a 5.

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?

Usage is implied by the verb: call this when an order's status needs to move. The phrase "the store's own status id from get_order" gives a useful routing hint toward the sibling that supplies that id, but there is no explicit when-not guidance or statement of prerequisites such as required permissions.

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