Stock of a product
dolibarr_product_stockRetrieve a product's physical stock by warehouse and lot, including best-before and sell-by dates, plus virtual stock from open orders.
Instructions
Physical stock of one product per warehouse and, for lot-tracked products, per lot with best-before and sell-by dates. Also gives the virtual stock (physical plus open orders).
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": "<product>"
},
"name": "dolibarr_product_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | The record's numeric id, or its ref exactly as shown in Dolibarr. |