Add inventory item
add_inventory_itemAdd food to inventory by providing food ID, unit ID, amount, and location ID; optionally set expiry date, sub-location, note, or code.
Instructions
Add food to inventory. Required: food_id, unit_id, amount (> 0), location_id. Optional: expires (YYYY-MM-DD), sub_location, note, code. Always creates a new entry, even when the same food already has an entry at that location.
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": {
"food_id": "<food_id>",
"unit_id": "<unit_id>",
"amount": "<amount>",
"location_id": "<location_id>"
},
"name": "add_inventory_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Short label, up to 16 characters. Default: the entry ID in hex. | |
| note | No | Free-text note, up to 256 characters. | |
| amount | Yes | Amount, in unit_id. | |
| format | No | slim (default) returns a compact shape. full returns the raw Tandoor object. | |
| expires | No | Expiry date, YYYY-MM-DD. | |
| food_id | Yes | Food ID, from list_foods. | |
| unit_id | Yes | Unit ID, from list_units. | |
| location_id | Yes | Inventory location ID, from list_inventory_locations. | |
| sub_location | No | Spot within the location, such as a shelf. |