alert_alert_define
Define a named alert rule with conditions like greater than, equals, or contains, and set severity to info, warning, error, or critical.
Instructions
[alert] Define a named alert rule. Conditions: gt/gte/lt/lte/eq/ne/between/outside/contains/not_contains/is_empty/is_truthy. Severity: info/warning/error/critical.
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": {
"name": "<name>",
"condition": "<condition>"
},
"name": "alert_alert_define"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| condition | Yes | ||
| threshold | No | ||
| threshold_high | No | ||
| severity | No | ||
| message | No | ||
| metric | No | ||
| cooldown_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |