Skip to main content
Glama

Pick Items

pick_items
Destructive

Pick (or un-pick) units on a pick list — the pick screen's collect and un-pick. Each line names a pick list line (lineId, or the SKU), a quantity in the line's unit and the location it comes from (optional when one location can serve it); lot-, expiry- and serial-tracked items name their lot, expiry or serials. Picking reserves the units at that location for the order. Or set autoAllocate=true (no lines) to pick every remaining line from the oldest stock first, as the Auto allocate button does; serial-tracked lines are left for a manual pick. A list not started yet is started first (picker defaults to you). The preview shows each line's picked quantity before and after. Two-step: preview=true, then commit with the previewReceipt. Then complete_pick_list hands the picked units to packing.

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": {
      "pickListId": "<pickListId>"
    },
    "name": "pick_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoLines to pick or un-pick (max 100). All lines commit together or not at all. Omit with autoAllocate=true.
pickerNoPicker (team member email or user id) when this call starts the list. Defaults to you.
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.
pickListIdYesPick list id (GUID) or number from list_pick_lists.
autoAllocateNoPick every remaining line from the oldest stock first (earliest expiry, then oldest receipt), instead of naming lines.
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
appliedNo
previewNo
expiresAtNo
pickListIdNo
fullyPickedNo
statusAfterNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
pickListNumberNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true, readOnlyHint=false and idempotentHint=false; the description goes well beyond that by explaining that picking reserves stock at a location for the order, that an unstarted list is started automatically with picker defaulting to you, that all lines commit atomically or not at all, and that nothing is written until the commit call. It also discloses the idempotency key requirement for committing a preview receipt, which is exactly the kind of constraint annotations cannot express.

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 critical constraint (lines versus autoAllocate, the two-step write) is front-loaded and no sentence is filler. However, the opening sentence and the tracking-requirement sentence are heavily parenthetical and semicolon-joined, which slows scanning of an otherwise well-ordered definition.

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 an eight-parameter destructive mutation, the description covers the safety model (preview gate, all-or-nothing commit, idempotency key), the two modes of invocation, the auto-start side effect, and the successor tool. An output schema exists, so return values need not be enumerated, and the one return detail that matters for control flow — the previewReceipt — is explained.

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 description coverage is 100%, so the baseline is 3; the description earns an extra point by explaining relationships the schema documents only in isolation — that preview=true yields a previewReceipt that must be paired with a fresh idempotencyKey, that autoAllocate replaces the lines array entirely, and that picker only applies when this call starts the list. It does not add format or validation detail beyond what per-parameter descriptions already carry.

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 names a specific verb and resource ('Pick (or un-pick) units on a pick list') and explicitly separates the two operating modes: naming lines versus autoAllocate. It also distinguishes itself from adjacent tools by naming get_pick_list as the source of lineId and complete_pick_list as the downstream step, so an agent can place this tool in the workflow without opening a schema.

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 states when to supply lines versus when to use autoAllocate=true (with the explicit constraint of no lines), notes that serial-tracked lines are excluded from auto-allocation and need a manual pick, and describes the required preview-then-commit sequence with previewReceipt plus a fresh idempotencyKey. The handoff to complete_pick_list is spelled out as the next step.

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