prometheus_list_alerts
Retrieve all active and pending Prometheus alerts with labels, state, and severity counts to quickly assess system health and ongoing incidents.
Instructions
List all active and pending alerts from Prometheus.
Wraps GET /api/v1/alerts. Returns every alert that Prometheus currently
tracks, with labels (including alertname, severity), state
(firing / pending), the time it became active, and its current value.
Also returns a summary grouped by state and a count by severity label.
Examples:
- Use when: "Are there any firing alerts right now?"
→ check firing_count and alerts where state='firing'.
- Use when: "Show me all critical alerts"
→ filter alerts by labels.severity == 'critical'.
- Use when: Checking system health during an incident — list alerts
first to understand what's firing before querying metrics.
- Don't use when: You want historical alert data (Prometheus stores only
current state; use Alertmanager or a recording rule for history).
- Don't use when: You want raw metric values
(call prometheus_query or prometheus_query_range).
Returns:
dict with total_count / firing_count / pending_count /
state_summary / alerts (list with labels, annotations,
state, active_at, value).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total_count | Yes | ||
| firing_count | Yes | ||
| pending_count | Yes | ||
| state_summary | Yes | ||
| alerts | Yes |