joiva_add_pantry_item
Add something the user put away at home. Nutrient values are not accepted here: Joiva resolves them from its own reference sources and refines them in the background. The record is as precise as its identity: name, brand, barcode. Nutrients written into note are not evaluated. A printed nutrition table counts as evidence only when photographed in the Joiva app (Vorrat → Einkauf fotografieren), not as typed numbers. Quantity may be grams, millilitres or pieces; unitWeightG is the known weight per piece, not an estimate.
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": {
"label": "<label>",
"quantity": "<quantity>",
"unit": "<unit>"
},
"name": "joiva_add_pantry_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| unit | Yes | ||
| brand | No | Manufacturer/brand, if known | |
| label | Yes | Product name, e.g. 'Hackfleisch gemischt' | |
| staple | No | Staple (Grundvorrat: salt, oil, spices): always considered available, carries no meaningful quantity, is never deducted and never goes on the shopping list. | |
| barcode | No | EAN/UPC. Links to the product catalogue | |
| location | No | ||
| quantity | Yes | ||
| bestBefore | No | YYYY-MM-DD | |
| unitWeightG | No | Grams per piece/ml, when actually known |