classify_zero_series_rule
Classifies zero-series PromQL or LogQL alert rules as zero_by_design or orphaned_or_unverified, helping auditors identify silent Grafana alerting blind spots.
Instructions
Classify a single PromQL or LogQL alert expression without threshold filters.
Args: expr: Full PromQL or LogQL expression returning zero series. datasource_uid: Grafana datasource UID bound to the rule. datasource_type: Either 'prometheus' or 'loki'.
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": {
"expr": "<expr>",
"datasource_uid": "<datasource_uid>"
},
"name": "classify_zero_series_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | ||
| datasource_uid | Yes | ||
| datasource_type | No | prometheus |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |