add_stock
Record newly bought stock by specifying product, amount, and best-before date, plus optional location, to report the updated inventory total.
Instructions
Record newly bought stock, and report the new total.
Args: product: Product name, description fragment, or barcode. Must identify exactly one existing product — this does not create new products. amount: How much, in the product's own stock unit. best_before_date: YYYY-MM-DD. Use the package date when it is known; otherwise estimate it, and see get_conventions for whatever estimates this pantry uses. location_id: Where it is being put, if not the product's usual spot — either its id or its exact name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| product | Yes | ||
| location_id | No | ||
| best_before_date | Yes |