create_product
Add a new product to the grocery catalog for items never stocked before. Creates the product record, flags possible duplicate names, and leaves stock entries for a separate step.
Instructions
Add a new product to the catalog, for something never stocked before.
This only creates the product record — call add_stock next to record an amount on hand. Refuses rather than guessing if the name already matches an existing product; use add_stock for those instead. A near-duplicate name (e.g. "Applesauce" vs an existing "Apple Sauce") does not block creation, but comes back in possible_duplicates — check that list before assuming the new product is really new.
Args: name: Product name. See get_conventions for any naming rule this pantry follows. category: Product group name, exact match. See get_conventions. location_id: Usual storage location — either its id or its exact name. unit: Stock/purchase/consume unit name, e.g. "Piece", "Pack", "Gram". Must already exist in Grocy; see get_conventions. description: Short description identifying the exact item — brand, size, variant. min_stock: Optional minimum to keep on hand, in the same unit. Setting it is what makes below_min_stock and add_missing_to_shopping_list work for this product.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| unit | No | Piece | |
| category | Yes | ||
| min_stock | No | ||
| description | No | ||
| location_id | Yes |