add_inventory_unit
Adds a stock line to an inventory item. Provide inventory item id, name, optional identifier (serial, lot code, or other label), quantity (default 1), and status (InStock, Ordered, Outbound, Damaged). Use quantity greater than 1 for fungible groups (e.g. 5 of the same lot). An item can track at most 500 stock lines. Returns the created line.
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": {
"inventoryItemId": "<inventoryItemId>",
"name": "<name>"
},
"name": "add_inventory_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| status | No | InStock | |
| quantity | No | ||
| identifier | No | ||
| inventoryItemId | Yes |