setShopStockTool
Update the shelf stock of a product or of one of its variants. Operational change (§4.6): any rikma member may do it, it applies at once, and prices are never touched. Two modes: set counts the shelf ("there are 7"), add adds a delivery ("12 came in"), reading the quantity on the server first so a sale that landed meanwhile is not overwritten. Use quant=-1 for unlimited. A product that is sold by variant keeps its stock on the variants (Matanot.quant is not used). Members only. Docs: https://1lev1.com/mcp#setShopStockTool
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | `set` counts, `add` delivers. Default set. | |
| value | No | Units: the new count (`set`) or how many came in (`add`). Ignored when unlimited=true. | |
| productId | Yes | Matanot id (from listRikmaProducts). | |
| projectId | Yes | Rikma id. | |
| unlimited | No | Pass true for unlimited stock (-1). | |
| variantId | No | Variant id (from listRikmaProductVariants or listRikmaProducts). Required when the product has variants. Pass null/omit for a simple product. |