create_alert_rule
Define alert rules in Grafana to monitor metrics and logs, triggering notifications when specified conditions are met for proactive incident response.
Instructions
Create a new alert rule
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": {
"title": "<title>",
"condition": "<condition>",
"data": "<data>",
"folderUID": "<folderUID>",
"ruleGroup": "<ruleGroup>"
},
"name": "create_alert_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| condition | Yes | ||
| data | Yes | ||
| folderUID | Yes | ||
| ruleGroup | Yes | ||
| intervalSeconds | No | ||
| forDuration | No | 5m | |
| noDataState | No | NoData | |
| execErrState | No | Alerting | |
| labels | No | ||
| annotations | No |