update_product_stock
Update a product's stock quantity or availability status to maintain accurate inventory levels. Specify the product ID and new stock count, optionally setting the in-stock flag.
Instructions
Update inventory stock level or availability status for a merchant product.
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>",
"stock": "<stock>"
},
"name": "update_product_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock | Yes | New stock quantity available | |
| inStock | No | Explicit flag indicating if product is in stock | |
| productId | Yes | Numeric ID of the product |