Transfer stock
transfer_stockMove an amount of a quantity-tracked item's stock from one place or person to another (e.g. 3 packs of printer paper from the storeroom to room 201, or 5 markers to a teacher). Quantity-tracked items only; assign_item moves serialized items. Location and person ids come from search_resources or from check_item_availability's distribution. Returns every stocked level after the move as distribution: { locationId, name, kind: location|person, quantity, available, reserved?, minStock?, isLow? }, the same row shape check_item_availability returns, so isLow shows whether either end is now low (isLow counts AVAILABLE stock: on hand minus what orders reserved). Amounts reserved for orders or exceeding the source location's stock are rejected. When the item has overdue maintenance the call writes nothing and returns { requiresAcknowledgment: true, warnings }; the same call with acknowledgeWarnings: true performs it. Requires the manager role. Not idempotent: a repeated call moves the stock again.
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>",
"fromLocationId": "<fromLocationId>",
"toLocationId": "<toLocationId>",
"amount": "<amount>"
},
"name": "transfer_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | How many units to move (integer, at least 1) | |
| itemId | Yes | Item id (must be a quantity-tracked item) | |
| toLocationId | Yes | Destination location or person resource id | |
| fromLocationId | Yes | Source location or person resource id (where the stock is now) | |
| acknowledgeWarnings | No | true performs the call despite the warnings a previous requiresAcknowledgment result named |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Item name | |
| itemId | No | Item id | |
| warnings | No | Overdue maintenance behind a requires-ack round | |
| instruction | No | Which acknowledge flag performs the call | |
| distribution | No | Every stocked level after the move — the SAME row shape check_item_availability returns | |
| totalQuantity | No | Pool total after the move | |
| requiresAcknowledgment | No | Present and true when nothing was written because of what this result names; the SAME call with the acknowledge flag named in `instruction` performs it |