joiva_consume_pantry_item
Deduct a quantity from a pantry item (after cooking, or when something was thrown away). Joiva never deducts on its own: logging a meal does not silently change the stock, because a portion eaten is rarely the whole package.
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": {
"pantryItemId": "<pantryItemId>",
"quantity": "<quantity>"
},
"name": "joiva_consume_pantry_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit of the given quantity; defaults to the item's own unit | |
| reason | No | 'eaten' = eaten/cooked, 'discarded' = thrown away | |
| quantity | Yes | ||
| pantryItemId | Yes | Id of the pantry item |