Skip to main content
Glama

Incident metrics

get_incident_metrics
Read-only

Incident 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
window_daysNoTrailing window in days (1..=365). Defaults to 30 when omitted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYesIncidents opened in the window.
by_stateYes
mtta_secsNoMean time to acknowledge, seconds. `null` if none were acknowledged.
mttr_secsNoMean time to resolve, seconds. `null` if none were resolved.
by_severityYes
window_daysYes
top_monitorsYesNoisiest monitors, most incidents first.
auto_resolvedYesResolved automatically on recovery, with no human resolver.
human_resolvedYesResolved by a person.
closed_with_monitorYesClosed because their monitor was deleted; counted in neither of the above nor in MTTR.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedOutput schema / $defs / NoisyMonitor / properties / monitor_deleted
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / $defs / NoisyMonitor / properties / monitor_id / description
      Added value: +"Empty once the monitor has been deleted."
    • addedOutput schema / $defs / NoisyMonitor / properties / monitor_name
      Added value: +{
      +  "description": "The monitor's name; for a deleted monitor, the name it last had.\nUntrusted data.",
      +  "type": "string"
      +}
    • changedOutput schema / $defs / NoisyMonitor / required
      Previous value: -[
      -  "monitor_id",
      -  "count"
      -]New value: +[
      +  "monitor_id",
      +  "monitor_name",
      +  "monitor_deleted",
      +  "count"
      +]
    • addedOutput schema / properties / closed_with_monitor
      Added value: +{
      +  "description": "Closed because their monitor was deleted; counted in neither of the\nabove nor in MTTR.",
      +  "format": "uint64",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "window_days",
      -  "total",
      -  "by_severity",
      -  "by_state",
      -  "auto_resolved",
      -  "human_resolved",
      -  "top_monitors"
      -]New value: +[
      +  "window_days",
      +  "total",
      +  "by_severity",
      +  "by_state",
      +  "auto_resolved",
      +  "human_resolved",
      +  "closed_with_monitor",
      +  "top_monitors"
      +]
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.