Skip to main content
Glama

Create Transfer Order

create_transfer_order

Create a stock TRANSFER ORDER moving items from one warehouse node to another — the action a reorder/transfer RECOMMENDATION points at (replenishing a transfer-mode 3PL/FBA node from a supplying DC). Lines are given by SKU + quantity; the item's cost, name and default unit of measure are resolved from the catalog. Source and target must be two different warehouses in your tenant. By default the order is created as an editable DRAFT (status "created") that reserves no stock — the same landing state as the UI and the autopilot sweep. Set submit=true to also SUBMIT it: that validates on-hand availability at the source, reserves the stock, and moves it to "pending" to begin the pick/pack/ship flow; if the source is short, the whole call is rejected and nothing is created. A client-pinned token can only transfer its own client's items — a SKU owned by another client is reported NOT_FOUND. Max 500 lines per call.

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": {
      "sourceWarehouseId": "<sourceWarehouseId>",
      "targetWarehouseId": "<targetWarehouseId>",
      "lines": "<lines>"
    },
    "name": "create_transfer_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional customer-facing note recorded on the transfer order.
linesYesThe lines to transfer: each an item SKU and a quantity (in the item's default UOM).
submitNoSubmit the order after creating it: validate source availability, reserve stock, and move it to "pending". Default false = leave it as a draft that reserves nothing.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is created until the commit call.
internalNoteNoOptional internal note recorded on the transfer order.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.
sourceWarehouseIdYesSource warehouse id (GUID) — the node stock moves OUT of.
targetWarehouseIdYesTarget warehouse id (GUID) — the node stock moves IN to. Must differ from the source.
expectedArrivalDateNoExpected arrival calendar date (YYYY-MM-DD); omit when unknown. Used by manufacturing supply planning.

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
typeNo
linesNo
numberNo
statusNo
previewNo
expiresAtNo
submittedNo
totalAmountNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo
sourceWarehouseIdNo
targetWarehouseIdNo
expectedArrivalDateNo
sourceWarehouseNameNo
targetWarehouseNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only say it is not read-only, not destructive and not idempotent; the description goes far beyond that. It discloses the landing state (draft that reserves no stock), what submit does (validates source on-hand, reserves stock, moves to "pending"), that a short source rejects the whole call and creates nothing, the client-pinning NOT_FOUND behavior, and the 500-line cap.

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 core verb+resource, then the draft-vs-submit semantics, then limits; nearly every sentence carries load. It is dense with em-dashes and parentheticals, slightly over-packed, but not padded.

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

Completeness3/5

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

An output schema exists, so return values need no explanation, and parameter documentation is fully in the schema. The gap is internal consistency: the description presents create-as-draft as the default behavior while the schema says calls without a previewReceipt are refused, so an agent trusting only the description would issue a call that fails.

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 baseline is 3. The description adds genuine meaning for lines (SKU + quantity, cost/name/UOM resolved from catalog) and for submit, but it never mentions preview, previewReceipt or idempotencyKey — and by saying the order is created as a draft by default it implies a one-call write, while the schema marks a two-step preview/commit as required.

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?

Names a specific verb and resource ("Create a stock TRANSFER ORDER moving items from one warehouse node to another") and pins the scope precisely — replenishing a transfer-mode 3PL/FBA node from a supplying DC. That is enough to pick it out from create_purchase_order or create_sales_order 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?

Gives a clear trigger (the action a reorder/transfer recommendation points at), the constraint that source and target must be two different warehouses in the tenant, and an explicit choice between draft (default) and submit=true with the consequences of each. There are no explicit exclusions naming sibling tools, and the required preview/commit flow is not walked through here, so it is not a full when/when-not map.

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