Record items used
consume_itemsRecord that the user USED items from their inventory (e.g. after cooking a meal): 'I made the chili', 'we used the last two eggs', 'I cooked with the chicken'. Each named item is decremented by its amount, or removed entirely when no amount is given or the amount covers what's left. Set restock:true to add anything fully used up back onto the shopping list. This is destructive to inventory — only call it when the user has actually consumed the items, never to guess at what a recipe might have used. If you are inferring the items from a recipe, confirm the list with the user first.
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": {
"items": "<items>"
},
"name": "consume_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Inventory item names that were used, e.g. ['eggs', 'butter']. | |
| amounts | No | Optional per-item amount used, keyed by the same name as in items (e.g. {"eggs": 2}). Omit an item to consume it entirely. | |
| restock | No | When true, any item fully used up is added to the shopping list. Defaults to false. |