List PrestaShop Stock
ps_list_stockLists product stock availability with filters for product ID and out-of-stock items, plus pagination and summary or ID-only response modes for inventory checks.
Instructions
List stock availability for products.
Args:
limit: Max items to return (default: 50)
offset: Pagination offset (default: 0)
id_product: Filter by product ID
out_of_stock_only: Only show products with quantity <= 0
mode: Response shape (default: "raw"): • "raw" → full stock entries (default, backward-compatible) • "summary" → aggregated stats only (total units, out-of-stock count, in-stock count) • "ids_only" → flat array of product IDs that have stock entries
Returns: Array of stock entries with product_id, product_attribute_id, quantity, and out_of_stock policy.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ps_list_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Response shape: 'raw'=full records (default), 'summary'=aggregated stats only, 'ids_only'=flat product ID array | raw |
| limit | No | Max items | |
| offset | No | Pagination offset | |
| id_product | No | Filter by product ID | |
| out_of_stock_only | No | Only show out-of-stock items |