Get Product Stock
ps_get_product_stockRetrieve stock levels and out-of-stock policy for a product and all its variants by product ID, so you can check availability before managing orders or inventory.
Instructions
Get stock information for a specific product, including all its combinations/variants.
Args:
id_product: Product ID (required)
Returns: Stock entries for the product and all its combinations, with quantities and out-of-stock policy.
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": {
"id_product": "<id_product>"
},
"name": "ps_get_product_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_product | Yes | Product ID |