Skip to main content
Glama

Mango Inventory

Unpack item from container

unpack_item
DestructiveIdempotent

Take an item out of its container. Its current location and holder are set from the container's effective position at that moment (a snapshot: it stops following the container). No change if the item is not packed. Setting a current location or holder on a packed item with assign_item unpacks it first, in the same call. Requires the manager role.

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": {
      "itemId": "<itemId>"
    },
    "name": "unpack_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYesItem id

Output Schema

NameRequiredDescriptionDefault
idNoItem id
nameNoItem name
statusNoCondition: available | in_repair | defect | lost | retired ("available" means not defect/lost/retired — the item may still be borrowed)
webUrlNoLink to this item in the web app, for a person to open. Absent when the deployment has no public address configured
isDraftNoPresent and true only for an unfinished draft capture
modelIdNoThe item's model — pass it as create_order lines[].modelId to order any instance of this model
categoryNoCategory name
quantityNoHow many this row stands for — only on quantity-tracked pools. To count a pool, SUM this; to count serialized items, count rows
containerNoThe container this item is packed into, if any
modelNameNoThe model's name
compartmentNoThe compartment of that container the item sits in (absent = directly in the container)
descriptionNoItem description
primaryCodeNoThe code printed on the item's asset tag — how a human tells two identical models apart. Absent when no code is attached
homeLocationNoWhere the item belongs
trackingModeNo"quantity" for a stock pool counted by amount. Absent = a serialized item, i.e. this row IS one physical thing
contentsCountNoDirect contents count — containers only
currentHolderNoPerson currently holding it
currentLocationNoWhere the item is now
effectiveHolderNoHolder followed through the container chain
effectiveLocationNoLocation followed through the container chain
responsiblePersonNoPerson responsible

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / webUrl / description
      Previous value: -"Link to this item in the web app — give it to your user so they can look at the record themselves. Absent when the deployment has no public address configured"New value: +"Link to this item in the web app, for a person to open. Absent when the deployment has no public address configured"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses the manager-role auth requirement, the snapshot semantics ('it stops following the container'), and the no-op case that explains the idempotentHint. This is exactly the kind of context the destructiveHint and idempotentHint flags cannot convey on their own, and it does not contradict them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each carrying a distinct fact (action, snapshot consequence, no-op case, sibling interaction, auth). The core action is front-loaded and there is no filler or restatement of the title.

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?

With one simple parameter, an output schema present, and annotations covering the safety profile, the remaining agent-facing questions are authorization, repeat-call behavior, and resulting state — all three are answered. Nothing material is missing for correct invocation.

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% with a single required itemId, so the schema already carries the parameter burden. The description adds nothing about the id format or where an agent would obtain a valid itemId, leaving it at the baseline for a fully documented schema.

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 first sentence states a specific verb and resource ('Take an item out of its container'), the inverse of the sibling pack_item, and the rest of the description pins down exactly what state the item ends up in. An agent can distinguish this from assign_item and pack_item without opening any 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?

It clearly frames the applicable context and explicitly notes 'No change if the item is not packed', plus it routes the agent away from a redundant call by explaining that assign_item already unpacks first. It never names pack_item as the reverse operation, so the alternative-selection guidance is clear but not exhaustive.

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