Incident metrics
get_incident_metricsIncident metrics over a trailing window (default 30 days): MTTA/MTTR in seconds, total incidents, counts by severity and state, auto- vs human-resolved, and the noisiest monitors. Read-only.
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": "get_incident_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window_days | No | Trailing window in days (1..=365). Defaults to 30 when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Incidents opened in the window. | |
| by_state | Yes | ||
| mtta_secs | No | Mean time to acknowledge, seconds. `null` if none were acknowledged. | |
| mttr_secs | No | Mean time to resolve, seconds. `null` if none were resolved. | |
| by_severity | Yes | ||
| window_days | Yes | ||
| top_monitors | Yes | Noisiest monitors, most incidents first. | |
| auto_resolved | Yes | Resolved automatically on recovery, with no human resolver. | |
| human_resolved | Yes | Resolved by a person. | |
| closed_with_monitor | Yes | Closed because their monitor or their group was deleted; counted in neither of the above nor in MTTR. |