Use up or restock
adjust_stockIncrement or decrement a tracked consumable's stock count when items are used up or bought, logging the change, keeping counts at zero minimum, and updating its shopping-list status automatically.
Instructions
Counts consumables up or down — filters, batteries, bulbs: negative delta for used up ("we used the last AA pack" → -1), positive for bought more. Use it whenever the person uses up or buys something tracked; it never goes below 0, logs the change in the item's stock history, and moves the item on or off the shopping list. To set an exact count (after a recount), use update_item's quantity. Returns the new count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The item's id, from search_inventory | |
| note | No | Why, for its stock history ("used for the guest room") | |
| delta | Yes | How many used (negative) or bought (positive); not 0 |