grocy_stock_inventory
Set a product's current stock amount via inventory POST by product ID or barcode, with an optional dry-run preview when confirmation is omitted.
Instructions
Set the stock amount of a product. POST inventory, by product_id or barcode. Omit confirm for a dry-run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"new_amount": "<new_amount>"
},
"name": "grocy_stock_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| price | No | ||
| barcode | No | Product barcode. Provide this or product_id. | |
| confirm | No | Set to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected. | |
| new_amount | Yes | New current amount for the product. | |
| product_id | No | Product id. Provide this or barcode. | |
| location_id | No | ||
| best_before_date | No | ||
| stock_label_type | No | ||
| shopping_location_id | No |