grocy_stock_transfer
Transfer a specified product amount between stock locations using product ID or barcode. Omit confirm for a dry-run preview before executing.
Instructions
Transfer amount of a product between locations. POST transfer, 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": {
"amount": "<amount>",
"location_id_from": "<location_id_from>",
"location_id_to": "<location_id_to>"
},
"name": "grocy_stock_transfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| 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. | |
| product_id | No | Product id. Provide this or barcode. | |
| location_id_to | Yes | ||
| stock_entry_id | No | ||
| location_id_from | Yes |