Stock Alert Check
ps_stock_alert_checkChecks product stock against configured warning and critical thresholds and reports alerts, saving current and historical alert data for PrestaShop inventory monitoring.
Instructions
Compare current product stock against configured thresholds and report alerts.
Reads thresholds from /data/stock_alert_config.json (created with defaults if absent). Default config: { default_threshold: 5, critical_threshold: 0 }
Returns summary: { total_warnings, total_critical, alerts[] } Writes current alerts to /data/stock_alerts.json and history to /data/stock_alerts_history.json.
Args:
lang_id: Language ID for product names (default: "1")
limit: Max products to check (default: 500)
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_stock_alert_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max products to check | |
| lang_id | No | Language ID for product names | 1 |