update_pantry_item
Update a pantry item's name, brand, category, unit, or notes while preserving stock and other data.
Instructions
Update an existing pantry item's metadata (rename, change unit, category, brand, notes). Internally fetches the current ArticleDto and PUTs back a merged copy — only the fields you pass change; everything else (current stock, price history, image URLs, autoRestock config) round-trips unchanged. Two API calls per invocation. Returns the updated ArticleDto. Use reduce_pantry_amount for stock changes — this tool only touches metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Item uuid (from `list_pantry_items[].uuid`). Item must already exist. | |
| name | No | New name. Omit to keep current. | |
| brand | No | New brand. Omit to keep current; pass null to clear an existing brand. | |
| categoryUuid | No | New category uuid. Discover existing ones by inspecting `list_pantry_items[].categoryUuid`. | |
| unitId | No | New unit id, e.g. "pieces", "g", "ml". Changes how `amount` is displayed but does NOT convert existing stock. | |
| notes | No | Freeform notes. Omit to keep current; pass null to clear an existing note. | |
| listId | No | List UUID — call `list_lists` to discover one. Optional only in stdio mode (falls back to the PANTRIST_LIST_ID env var); required explicitly in HTTP mode. |