add_pantry_item
Add a food item. Expiry is estimated from shelf-life rules (category + storage) unless a printed expiry_date is given.
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": {
"name": "<name>"
},
"name": "add_pantry_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | Numeric amount, e.g. 2 | |
| name | Yes | ||
| unit | No | e.g. gal, jar, lb | |
| notes | No | ||
| store | No | ||
| storage | No | ||
| category | No | ||
| quantity | No | Free text, e.g. '2 gal', '1 x 24ct' | |
| expiry_date | No | Printed date; overrides the estimate | |
| low_threshold | No | Flag as low (and suggest for the shopping list) when qty <= this | |
| purchase_date | No | Defaults to today |