List raw-material inventory
recipal_list_inventoriesRaw-material (ingredient) stock rows: quantity on hand, weeks remaining, daily consumption, quantity on order, reorder risk (safe, warning, critical), reorder level and the on-hand value. Needs an inventory plan (otherwise 403 INVENTORY_PLAN_REQUIRED). By default sorted by weeks remaining, lowest first. GET /inventories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Case-insensitive search in the ingredient name. | |
| page | No | Page number, from 1 (default 1). Pass the previous reply's next_page. | |
| tags | No | Only rows whose ingredient has ALL these tags. | |
| archived | No | "false" = active only (default), "true" = archived only, "all" = both. | |
| per_page | No | Results per page, 1-20 (default 20). | |
| sort_field | No | Default "inventories.weeks_remaining". | |
| supplier_id | No | Only rows linked to this supplier. | |
| sort_direction | No | "asc" (default), "desc", or "mid" (warning band first, then critical, then safe; only for weeks_remaining and risk). |