Skip to main content
Glama

Fulfillbot: China Sourcing & Dropshipping

Create an order

create_order

Create an order. Saves the order like the portal's order form and returns it. Requires the previewToken of an order preview of exactly this order: without it the result is preview_required (422), and if the order or its price changed since the preview it is preview_changed (409). Creating an order doesn't charge the wallet. When the order has no problems, its stock is reserved and the estimated shipping and handling fee is held from the available balance. When the warehouse weighs the parcel, the shipping and handling fee is charged to the wallet automatically. If auto purchase is on and an order is short of stock, a purchase order is placed and paid automatically, within the limits set on the account. An order with problems is saved with status NEEDS_ATTENTION. A retry with the same idempotencyKey returns the first result instead of creating it 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": {
      "idempotencyKey": "<idempotencyKey>",
      "previewToken": "<previewToken>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
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
previewTokenYesThe previewToken from an order preview of exactly this order
storeOrderNoNoYour store's order number, unique among your orders. Leave empty to use our order number.
recipientNameNo
idempotencyKeyYesMake 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 / 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."
    • changedInput schema / properties / previewToken / description
      Previous value: -"The previewToken that preview_order returned for exactly this order"New value: +"The previewToken from an order preview of exactly this order"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond readOnlyHint=false and destructiveHint=false, the description discloses consequential side effects: stock reservation, estimated shipping fee held from available balance, later automatic charge on warehouse weighing, and automatic purchase orders when auto purchase is on. It also states that creation itself does not charge the wallet and that problem orders land in NEEDS_ATTENTION. It does not cover rate limits or whether the reservation/hold can be released, which keeps it short of a 5.

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-loaded with the action and the blocking prerequisite, then ordered from success path to edge cases (wallet, auto purchase, NEEDS_ATTENTION, idempotency). It is a dense run-on paragraph with no formatting, but nearly every sentence carries decision-relevant information.

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

Completeness5/5

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

For a 16-parameter mutation with an output schema, the description covers the prerequisite chain, failure codes, wallet/stock side effects, and retry behavior — everything an agent needs to invoke it safely. Return values are correctly left to the output schema.

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

Parameters4/5

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

Schema coverage is only 38% across 16 parameters, so the description carries real weight: it explains previewToken's exact provenance and error consequences and defines idempotencyKey's retry semantics ('reuse the same value only when retrying the same action'). Address and recipient fields remain undocumented in both places, but the two most consequential parameters are fully explained.

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 ('Create an order'), then immediately ties it to a concrete artifact ('Saves the order like the portal's order form and returns it'). The previewToken prerequisite implicitly distinguishes it from preview_order, but no sibling is named explicitly as the contrast case.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicit preconditions are given (must hold a previewToken from a preview of exactly this order) along with the exact failure modes when those conditions are not met: preview_required (422) and preview_changed (409). The idempotencyKey retry rule tells the agent precisely when re-invoking is safe versus duplicative.

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.