get_alert_rules_with_state
Retrieve Grafana alert rules with their current state (normal, alerting, pending, etc.), optionally filtered by state or rule name, to verify alert status and health.
Instructions
Get all alert rules with their current evaluation state.
This endpoint returns rules organized by namespace with their current state (Normal, Pending, Alerting, NoData, Error). It's the same endpoint used by Grafana's Alert List panel - useful for checking if an alert is working after creation.
Args: connection_name: Name of the Grafana connection state: Optional filter by state (e.g., "firing", "pending", "inactive") rule_name: Optional filter by rule name (partial match)
Returns: JSON string with rules organized by namespace, each including state, health, and evaluation info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| rule_name | No | ||
| connection_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |