grocy_stock_entry
Get, update, or print the Grocycode label for a stock entry; write actions require explicit confirmation.
Instructions
Stock entry. action get is GET /api/stock/entry/{entryId}. update is PUT. printlabel prints the Grocycode. Writes need confirm.
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": {
"action": "<action>",
"entry_id": "<entry_id>"
},
"name": "grocy_stock_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| open | No | ||
| price | No | ||
| action | Yes | ||
| amount | No | ||
| 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. | |
| entry_id | Yes | Stock entry id. | |
| location_id | No | ||
| best_before_date | No | ||
| shopping_location_id | No |