Set product inventory
set_product_inventorySet stock counts and stock policy for a Replo-managed product's variants, addressing each variant by its option-value combination (empty optionValues for a product with no options). available is an absolute count, not a delta. Turning on trackInventory without an available count leaves the variant unsellable until a count exists — set both together. Only products the merchant fulfills themselves can track stock; print-on-demand and digital variants are made to order and will be refused. Before creating, changing or showing Replo products on a page, call skills with name "replo-products".
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": {
"productId": "<productId>",
"variants": "<variants>"
},
"name": "set_product_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variants | Yes | ||
| productId | Yes |