grocy_stock_merge_products
Merge two stock products by keeping one ID and removing the other; omit confirm for a dry-run preview and set confirm true to execute.
Instructions
Merge two products into one. POST /api/stock/products/{productIdToKeep}/merge/{productIdToRemove}. 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": {
"product_id_to_keep": "<product_id_to_keep>",
"product_id_to_remove": "<product_id_to_remove>"
},
"name": "grocy_stock_merge_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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_to_keep | Yes | ||
| product_id_to_remove | Yes |