create_alert
Create an alert on a stat: webhook fires when the condition is met (above/below threshold, % change, heartbeat/missing data, sustained). Deliveries retry with backoff and carry a stable idempotency_key so receivers can dedup. The stat is referenced by NAME; it must already exist.
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": {
"stat": "<stat>",
"condition_type": "<condition_type>",
"threshold": "<threshold>",
"webhook_url": "<webhook_url>"
},
"name": "create_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stat | Yes | Name of the stat to alert on (as shown by list_stats). | |
| threshold | Yes | The boundary value (for heartbeat/missing_data use 0). | |
| webhook_url | Yes | Public HTTPS receiver for the alert payload (private/internal targets are refused). Email delivery is coming soon — webhook/Slack only for now. | |
| condition_type | Yes | above/below: value crosses threshold. pct_change: % move over window_minutes. heartbeat/missing_data: no data for window_minutes. sustained: above threshold for consecutive evaluations. | |
| window_minutes | No | Staleness window for heartbeat/missing_data, lookback for pct_change (minutes). | |
| cooldown_minutes | No | Minimum minutes between repeat fires (default 60). |