Skip to main content
Glama

Move Stock

move_stock
Destructive

Move stock between locations — bin to bin inside a warehouse, or straight into another managed warehouse — the Inventory page's Move action. Only available (unreserved) units move. Each line names the item, quantity, source location (optional when the item is in one location) and destination location (defaults to the item's default location in the destination warehouse). The preview shows stock at both ends before and after. Two-step: preview=true, then commit with the previewReceipt. For a tracked in-transit shipment between warehouses use create_transfer_order instead. Max 100 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": {
      "lines": "<lines>"
    },
    "name": "move_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesMove lines (max 100). All lines commit together or not at all.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is written until the commit call.
clientIdNoOptional client id (GUID) for operator (unpinned) credentials on 3PL tenants. Client-pinned credentials omit this.
warehouseIdNoSource Internal warehouse id (GUID). May be omitted when the tenant has exactly one Internal warehouse.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2: the receipt returned by the preview call. Supply with a fresh idempotencyKey to commit.

Output Schema

NameRequiredDescriptionDefault
okNo
linesNo
appliedNo
previewNo
warningsNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important operational behavior: the required preview-then-commit workflow, the single-use previewReceipt, the 100-line maximum, and that the preview shows stock at both ends before and after. These details meaningfully clarify how this destructive, non-idempotent mutation behaves.

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?

The description is front-loaded with purpose and scope, then adds the key two-step workflow and constraints. It is dense but readable; some line-field details repeat the schema, but the overall structure is efficient.

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?

Given a destructive multi-line stock mutation with a two-step preview/commit flow, the description covers the essential context: scope, unreserved-only constraint, line defaults, preview behavior, commit receipt requirement, maximum lines, and the sibling alternative. It is complete enough for correct invocation, especially with the output schema handling return values.

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 the line fields, optional source/destination behavior, preview, previewReceipt, and idempotencyKey. The description restates the line model and workflow but adds little parameter meaning beyond what the schema already provides.

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?

The description states a specific verb and resource: move stock between locations, including bin-to-bin and cross-warehouse moves. It distinguishes this from create_transfer_order for tracked in-transit shipments, so an agent can identify the correct tool without opening sibling schemas.

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?

It gives explicit usage conditions: only unreserved units move, source location is optional when the item is in one location, and destination defaults to the item default location. It also names the alternative create_transfer_order for tracked in-transit shipments, making the when-to-use boundary clear.

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