Skip to main content
Glama

Fulfillbot: China Sourcing & Dropshipping

Change an order that needs attention

update_order
Destructive

Change an order that needs attention. Replaces the whole order with the given fields, like saving the portal's order form: every field and every line is needed, and fields left out are cleared. Only orders with status NEEDS_ATTENTION can be changed; any other order returns 409 order_not_editable. Orders from a connected store keep the store's order number. Changing an order doesn't charge the wallet. When the order has no problems after the change, its stock is reserved and the estimated shipping and handling fee is held from the available balance. It takes an optional idempotencyKey. A retry with the same idempotencyKey returns the first result instead of applying the change twice. Needs the orders:write permission.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe record's id
cityNo
linesNoThe items in the order
address1No
address2No
provinceNo
buyerNoteNo
channelIdNoA shipping option from an order preview (shippingOptions[].channelId). Leave empty to use your shipping preference for the country.
postalCodeNo
countryCodeNoTwo-letter country code, for example US
storeOrderNoNoYour store's order number, unique among your orders. Leave empty to use our order number.
recipientNameNo
idempotencyKeyNoMake up a new unique value for each new action; reuse the same value only when retrying the same action.
recipientEmailNo
recipientPhoneNo
recipientCompanyNo

Output Schema

NameRequiredDescriptionDefault
dataYes
replayedNotrue when this is the saved result of an earlier call with the same idempotencyKey

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / channelId / description
      Previous value: -"A shipping option from the preview_order tool (shippingOptions[].channelId). Leave empty to use your shipping preference for the country."New value: +"A shipping option from an order preview (shippingOptions[].channelId). Leave empty to use your shipping preference for the country."
    • changedInput schema / properties / id / description
      Previous value: -"The id, as returned by the list and get tools"New value: +"The record's id"
    • changedInput schema / properties / lines / items / properties / productId / description
      Previous value: -"Our product id from the list_products tool. Leave empty to match by customerSku."New value: +"Our product id from your product list. Leave empty to match by customerSku."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Rich disclosure beyond annotations: omitted fields are cleared, store order numbers are preserved, stock is reserved and an S&H fee is held on success, and orders:write is required. However, the description's promise that a repeated idempotencyKey "returns the first result" sits in tension with idempotentHint=false, which an agent may read as "retries are unsafe"; the conditional nature of that guarantee could be stated more sharply.

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?

Front-loads the replacement semantics, then orders preconditions, side effects, idempotency, and permissions sensibly. Six dense sentences with little waste, though the wallet/stock sentence is long enough to blur at a skim.

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?

Covers eligibility, error code, side effects, idempotency, and auth — strong coverage for a 16-parameter destructive mutation, and an output schema exists so return values need not be described. Only the annotation-level idempotency tension leaves a small ambiguity.

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 coverage is only 38%, but the description compensates for the single most important semantic: that every field and every line must be supplied because the payload replaces the whole order and omissions are cleared. Field-level meanings (channelId, storeOrderNo, productId vs customerSku) are left entirely to the schema.

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 and resource ("Change an order") and immediately pins down the semantics: a full replacement, not a partial patch, "like saving the portal's order form." That distinguishes it from create_order and cancel_order by implication, though no sibling is named explicitly.

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?

Gives a hard precondition (only status NEEDS_ATTENTION, otherwise 409 order_not_editable) and clarifies a common misconception ("doesn't charge the wallet"). It stops short of naming alternatives such as create_order for new orders or cancel_order for teardown.

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.