Skip to main content
Glama

Pack Items

pack_items
Destructive

Pack picked units into a package on a ship list, or take them out — the packing screen. Each line names a ship list line (lineId, or the SKU) and a quantity in the line's unit; lot-, expiry- and serial-tracked lines name which picked lots, expiries or serials go in (optional when only one choice fits). Lines go into a new package unless packageNumber names an existing one; package sets the box (container from list_shipping_containers, or dimensions), weight, shipping method, tracking number and cost — on an existing package only the fields given change. action=unpack takes a line out of the named package (omit quantity to take it all out). A list not started yet is started first (shipper defaults to you). Two-step: preview=true, then commit with the previewReceipt. Then ship_out ships the fully packed list.

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": {
      "shipListId": "<shipListId>"
    },
    "name": "pack_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoLines to pack or unpack (max 100). All lines commit together or not at all.
packageNoBox, weight, shipping method and tracking for the package.
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.
shipperNoShipper (team member email or user id) when this call starts the list. Defaults to you.
clientIdNoOptional client id (GUID) for operator (unpinned) credentials on 3PL tenants.
shipListIdYesShip list id (GUID) or number from list_ship_lists.
packageNumberNoExisting package number (from get_ship_list) to pack into or unpack from. Omit to pack into a new package.
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
packageIdNo
shipListIdNo
fullyPackedNo
statusAfterNo
actionItemIdNo
confirmationNo
correlationIdNo
packageNumberNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
shipListNumberNo
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?

Goes well beyond the annotations (readOnly=false, destructiveHint=true, idempotent=false) by disclosing the mandatory two-step preview-then-commit flow with a single-use previewReceipt, that nothing is written during preview, that an unstarted list is started with the shipper defaulting to the caller, and that on an existing package only supplied fields change. This is exactly the mutating-workflow context an agent needs before calling a destructive tool.

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 purpose and scoped by paragraph (lines, then package, then action, then the two-step flow). The sentences are long and dense and some material duplicates schema descriptions, but almost nothing is wasted for a tool of this complexity.

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?

Covers the full life cycle an agent must understand: how lines are identified, how tracking attributes are supplied, how packages are created versus reused, the preview/commit requirement, and the handoff to ship_out. With an output schema present, return values need no explanation, so nothing material is missing.

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 100%, so a 3 is the baseline, but the description adds real meaning: lots/expiries/serials are optional when only one choice fits, quantity may be omitted on unpack to empty the line, and omitting packageNumber targets a new package. It restates a few schema facts but earns credit for the conditional semantics.

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?

States a specific verb and resource ('Pack picked units into a package on a ship list') plus the inverse operation ('or take them out') and the screen it corresponds to. This is clearly separable from pick_items (which precedes it) and ship_out (which follows it).

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 operating context and names the alternatives/references an agent needs: list_shipping_containers for the box, get_ship_list for lineIds and package numbers, and ship_out as the downstream step once the list is fully packed. It never states an explicit when-not condition, but the workflow placement is unambiguous.

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