List incidents
list_incidentsList monitor and heartbeat incidents newest first or by attention to see what is or was down and which alerts went out. Filter by status, cause, date range, monitor or heartbeat.
Instructions
List the organization's monitor and heartbeat incidents, newest first (or by attention with sort), to see what is or was down and which alerts went out. Each item has id, monitor_id or heartbeat_id (exactly one is set), started_at, created_at, resolved_at (null while open), cause, cause_detail (the raw check error), acknowledged_at and notification_logs: the alerts sent, oldest first, each with id, channel_type (EMAIL, TELEGRAM, WEBHOOK, SLACK or DISCORD), destination (may be masked), event (TRIGGERED for the first alert only, RESOLVED for the recovery; reminders are not logged per incident), sent_at, status (PENDING while a webhook, Slack or Discord delivery is still being tried, then SENT or FAILED) and error (the last delivery error). started_at is the outage start: the first failing check of the streak (for a heartbeat, the missed deadline, or when the /fail ping arrived). created_at is when the incident was confirmed and its first alert went out, often minutes after started_at. resolved_at is when it ended: the check that confirmed recovery, or the pause, deletion or plan downgrade that closed it (null while open). acknowledged_at is when someone acknowledged it (null if nobody has). An incident's duration is resolved_at minus started_at. For one incident's full record use get_incident; for the checks behind it use list_check_results; incidents posted on a status page are list_status_page_incidents. An incident resolves by itself when its monitor or heartbeat recovers. Returns a page: items plus total, page, size and pages. An invalid value is a 422 naming the argument. Example: {"status": "open", "size": 50}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_incidents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last UTC date of a calendar range, YYYY-MM-DD, inclusive; without it the range runs to now. Not together with period_days. | |
| from | No | First UTC date of a calendar range, YYYY-MM-DD, inclusive. An incident is listed if it was active on any day of the range. Not together with period_days. | |
| page | No | Page number, 1 or more; default 1. | |
| size | No | Rows per page, 1 to 100; default 25. Keep paging until you have seen total rows. | |
| sort | No | attention: open unacknowledged first, then open acknowledged, then resolved; newest first within each. Omit it for newest first. | |
| cause | No | Keep one failure cause, such as TIMEOUT, HTTP_5XX or HEARTBEAT_MISSED. | |
| status | No | open or resolved (lowercase); omit it for both. | |
| all_time | No | true lists incidents of all time, one page at a time. Not together with period_days, from or to. | |
| monitor_id | No | Keep one monitor's incidents: its uuid from list_monitors. Not together with heartbeat_id (a 422). | |
| period_days | No | Keep incidents active within the last N days, 1 to 365. Without period_days, from, to or all_time the tool lists the last 30 days. | |
| heartbeat_id | No | Keep one heartbeat's incidents: its uuid from list_heartbeats. Not together with monitor_id (a 422). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| size | Yes | ||
| items | Yes | ||
| pages | Yes | ||
| total | Yes |