Configure Stock Alerts
ps_configure_stock_alertsSets global and per-product stock alert thresholds, including critical levels and recommended check intervals, so PrestaShop inventory warnings match your monitoring needs.
Instructions
Set global and per-product stock alert thresholds.
Updates /data/stock_alert_config.json.
Args:
default_threshold: Global warning threshold (default: 5)
critical_threshold: Global critical threshold (default: 0)
check_interval_minutes: Recommended check interval in minutes (default: 60)
product_thresholds: JSON object mapping product_id → threshold e.g. { "42": 10, "99": 3 }
Returns the updated configuration.
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_configure_stock_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| default_threshold | No | Global warning threshold | |
| critical_threshold | No | Global critical threshold | |
| product_thresholds | No | Per-product thresholds as { product_id: threshold } | |
| check_interval_minutes | No | Recommended check interval in minutes |