Pack item into container
pack_itemPack an item into a container: a case, cart, box or vehicle that is itself an inventory item (e.g. the voltmeter into the experiment case). While packed, the item's location and holder FOLLOW the container: one assign_item call on the container moves or lends the whole kit, and item reads show the followed position as effectiveLocation/effectiveHolder. A container can have named compartments (a vehicle's «Fahrerhaus», «GR1»…«GR7»; get_item on the container lists them as compartments): compartment takes a name (case-insensitive) or an id; an unknown name is refused with unknownCompartment and the container's validNames. compartment: null puts the item directly in the container, outside any compartment (also from a compartment of the same container). Without compartment, re-packing into the same container keeps the item's compartment, and packing into another container puts it directly in it. Packing clears the item's own current location and holder, so an item someone holds is taken from them. Both sides must be serialized items in this organization: quantity-tracked stock goes into a container from the item's stock section in the app (it reads back as packed on get_item / check_item_availability). Containers nest up to three levels (compartments are not a level). Refused: lost/retired items, items reserved for an active order (also a container that holds such an item, since packing moves its contents too) and containers switched to «cannot hold items». Requires the manager role. Idempotent: re-packing into the same container and compartment changes nothing. unpack_item reverses it.
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>",
"containerId": "<containerId>"
},
"name": "pack_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Item id to pack | |
| compartment | No | Compartment of the container, by name (case-insensitive) or id; null = directly in the container, outside any compartment. Absent = the current compartment (same container) or directly in another container | |
| containerId | Yes | Item id of the container to pack it into |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Item id | |
| name | No | Item name | |
| status | No | Condition: available | in_repair | defect | lost | retired ("available" means not defect/lost/retired — the item may still be borrowed) | |
| webUrl | No | Link to this item in the web app, for a person to open. Absent when the deployment has no public address configured | |
| isDraft | No | Present and true only for an unfinished draft capture | |
| modelId | No | The item's model — pass it as create_order lines[].modelId to order any instance of this model | |
| category | No | Category name | |
| quantity | No | How many this row stands for — only on quantity-tracked pools. To count a pool, SUM this; to count serialized items, count rows | |
| container | No | The container this item is packed into, if any | |
| modelName | No | The model's name | |
| compartment | No | The compartment of that container the item sits in (absent = directly in the container) | |
| description | No | Item description | |
| primaryCode | No | The code printed on the item's asset tag — how a human tells two identical models apart. Absent when no code is attached | |
| homeLocation | No | Where the item belongs | |
| trackingMode | No | "quantity" for a stock pool counted by amount. Absent = a serialized item, i.e. this row IS one physical thing | |
| contentsCount | No | Direct contents count — containers only | |
| currentHolder | No | Person currently holding it | |
| currentLocation | No | Where the item is now | |
| effectiveHolder | No | Holder followed through the container chain | |
| effectiveLocation | No | Location followed through the container chain | |
| responsiblePerson | No | Person responsible |