Skip to main content
Glama

Get incident

get_incident
Read-onlyIdempotent

Fetch a single incident by UID to review its state, timestamps, failure counts, related check, timeline events, and notification delivery statuses for triage.

Instructions

Get a single incident by UID (not by slug); an unknown UID fails with an "incident not found" error. Returns the incident object — number, state, timestamps, failure counts — plus the check with with=check and up to 50 timeline events with with=events. include=["notifications"] adds the incident's notification attempts (one row per dispatch target with its delivery status, channel and recipient, newest first), filtered by status and capped by limit. Use list_incidents to search and filter across incidents, and diagnose_check for a check's full triage briefing. Read-only: works with mcp:read tokens.

Input Schema

NameRequiredDescriptionDefault
uidYesIncident UID returned by list_incidents or diagnose_check.
withNoComma-separated extra fields. "check" includes the underlying check; "events" includes up to 50 most-recent timeline events (status transitions, notifications, manual notes). Example: "check,events".
limitNoWith include=notifications: max attempts (1-500, default 20).
statusNoWith include=notifications: only attempts in this delivery status. Allowed: pending, sent, failed, cancelled, skipped.
includeNoExtra lists to return with the incident. An unknown value is an error.

Output Schema

NameRequiredDescriptionDefault
uidYesIncident UID.
kindNoWhat the incident is about: check, slo_burn or degraded.
checkNoUnderlying check, when requested with with=check.
stateNoactive or resolved.
titleNoCustom title, when one was set.
eventsNoTimeline events (status transitions, notifications, manual notes), newest first; present when with=events was passed.
numberNoShort per-org reference, e.g. 42.
checkUidNoUID of the check the incident is about.
checkNameNoName of that check.
checkSlugNoSlug of that check.
startedAtNoRFC3339 timestamp when the incident opened.
resolvedAtNoRFC3339 timestamp when it resolved; absent while active.
descriptionNoCustom description, when one was set.
failureCountNoNumber of failures recorded for the incident.
relapseCountNoNumber of times the incident reopened.
notificationsNoNotification attempts, newest first; present when include=notifications was passed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.42.0
    • addedInput schema / properties / status / maxLength
      Added value: +2048
    • addedInput schema / properties / uid / maxLength
      Added value: +2048
    • addedInput schema / properties / uid / minLength
      Added value: +1
    • addedInput schema / properties / with / maxLength
      Added value: +2048
  2. Changed2 schema fields changedv0.41.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / additionalProperties
      Added value: +false
  3. Changed4 schema fields changedv0.38.5
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "Extra lists to return with the incident. An unknown value is an error.",
      +  "items": {
      +    "enum": [
      +      "notifications"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "With include=notifications: max attempts (1-500, default 20).",
      +  "type": "integer"
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "With include=notifications: only attempts in this delivery status. Allowed: pending, sent, failed, cancelled, skipped.",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "check": {
      +      "description": "Underlying check, when requested with with=check.",
      +      "type": "object"
      +    },
      +    "checkName": {
      +      "description": "Name of that check.",
      +      "type": "string"
      +    },
      +    "checkSlug": {
      +      "description": "Slug of that check.",
      +      "type": "string"
      +    },
      +    "checkUid": {
      +      "description": "UID of the check the incident is about.",
      +      "type": "string"
      +    },
      +    "description": {
      +      "description": "Custom description, when one was set.",
      +      "type": "string"
      +    },
      +    "events": {
      +      "description": "Timeline events (status transitions, notifications, manual notes), newest first; present when with=events was passed.",
      +      "items": {
      +        "properties": {
      +          "actorName": {
      +            "description": "Display name of the acting user, when known.",
      +            "type": "string"
      +          },
      +          "actorType": {
      +            "description": "Who acted: system or user.",
      +            "type": "string"
      +          },
      +          "createdAt": {
      +            "description": "RFC3339 timestamp of the event.",
      +            "type": "string"
      +          },
      +          "eventType": {
      +            "description": "Event type, e.g. \"incident.created\".",
      +            "type": "string"
      +          },
      +          "uid": {
      +            "description": "Event UID.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "failureCount": {
      +      "description": "Number of failures recorded for the incident.",
      +      "type": "integer"
      +    },
      +    "kind": {
      +      "description": "What the incident is about: check, slo_burn or degraded.",
      +      "type": "string"
      +    },
      +    "notifications": {
      +      "description": "Notification attempts, newest first; present when include=notifications was passed.",
      +      "items": {
      +        "properties": {
      +          "channelType": {
      +            "description": "Delivery channel, e.g. email or slack.",
      +            "type": "string"
      +          },
      +          "connection": {
      +            "description": "Targeted integration {uid, name, type}, or null when the target was a user.",
      +            "properties": {
      +              "name": {
      +                "description": "Integration name.",
      +                "type": "string"
      +              },
      +              "type": {
      +                "description": "Integration type, e.g. email or webhook.",
      +                "type": "string"
      +              },
      +              "uid": {
      +                "description": "Integration UID.",
      +                "type": "string"
      +              }
      +            },
      +            "type": [
      +              "object",
      +              "null"
      +            ]
      +          },
      +          "createdAt": {
      +            "description": "RFC3339 timestamp when the attempt was recorded.",
      +            "type": "string"
      +          },
      +          "error": {
      +            "description": "Delivery error; absent when there was none.",
      +            "type": "string"
      +          },
      +          "eventType": {
      +            "description": "Incident event that triggered the attempt.",
      +            "type": "string"
      +          },
      +          "incident": {
      +            "description": "Incident context {uid, title, state, startedAt}; absent unless the query filled it.",
      +            "properties": {
      +              "startedAt": {
      +                "description": "RFC3339 incident start.",
      +                "type": "string"
      +              },
      +              "state": {
      +                "description": "Incident state: active or resolved.",
      +                "type": "string"
      +              },
      +              "title": {
      +                "description": "Incident title.",
      +                "type": "string"
      +              },
      +              "uid": {
      +                "description": "Incident UID.",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "incidentUid": {
      +            "description": "Incident the attempt belongs to.",
      +            "type": "string"
      +          },
      +          "messageId": {
      +            "description": "Provider message ID; absent when the channel did not return one.",
      +            "type": "string"
      +          },
      +          "repeatIndex": {
      +            "description": "Escalation repeat round; absent for direct sends.",
      +            "type": "integer"
      +          },
      +          "sentAt": {
      +            "description": "RFC3339 timestamp when it was delivered; absent until sent.",
      +            "type": "string"
      +          },
      +          "skipReason": {
      +            "description": "Why the attempt was skipped; absent when it was not skipped.",
      +            "type": "string"
      +          },
      +          "source": {
      +            "description": "What triggered it, e.g. check_connection, escalation_user or escalation_schedule.",
      +            "type": "string"
      +          },
      +          "status": {
      +            "description": "Delivery status: pending, sent, failed, cancelled or skipped.",
      +            "type": "string"
      +          },
      +          "stepUid": {
      +            "description": "Escalation step that produced the attempt; absent for direct sends.",
      +            "type": "string"
      +          },
      +          "uid": {
      +            "description": "Notification row UID.",
      +            "type": "string"
      +          },
      +          "user": {
      +            "description": "Targeted user {uid, name}, or null when the target was a connection.",
      +            "properties": {
      +              "name": {
      +                "description": "User display name.",
      +                "type": "string"
      +              },
      +              "uid": {
      +                "description": "User UID.",
      +                "type": "string"
      +              }
      +            },
      +            "type": [
      +              "object",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "number": {
      +      "description": "Short per-org reference, e.g. 42.",
      +      "type": "integer"
      +    },
      +    "relapseCount": {
      +      "description": "Number of times the incident reopened.",
      +      "type": "integer"
      +    },
      +    "resolvedAt": {
      +      "description": "RFC3339 timestamp when it resolved; absent while active.",
      +      "type": "string"
      +    },
      +    "startedAt": {
      +      "description": "RFC3339 timestamp when the incident opened.",
      +      "type": "string"
      +    },
      +    "state": {
      +      "description": "active or resolved.",
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "Custom title, when one was set.",
      +      "type": "string"
      +    },
      +    "uid": {
      +      "description": "Incident UID.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "uid"
      +  ],
      +  "type": "object"
      +}
  4. First observedv0.32.1

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavioral context beyond them: the unknown-UID error, the 50-event cap, notification rows being newest-first and capped by limit, and the mcp:read token requirement. That is substantive disclosure an agent cannot infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The identifying constraint (UID not slug) and the error behavior are front-loaded, and every sentence carries routing or option information. The middle sentence is long and stacks several modifiers (include, status, limit, newest-first, per-target rows), which slightly slows parsing but is not padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only fetch with an output schema, annotations, and full parameter documentation, nothing an agent needs to call it correctly is missing: key format, optional expansions, notification filtering, caps, and failure mode are all covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a baseline of 3 applies; the description earns the extra point by explaining what the parameters mean semantically — include=["notifications"] yields one row per dispatch target with delivery status, channel and recipient — which enriches the schema's terser wording rather than repeating it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (get a single incident), and immediately disambiguates the key lookup key: 'by UID (not by slug)'. It also distinguishes itself from list_incidents and diagnose_check by name, so an agent can route without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the alternatives and the condition selecting them: list_incidents for searching/filtering across incidents, diagnose_check for a check's full triage briefing. The error path (unknown UID fails with 'incident not found') tells the agent what a wrong selection looks like.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.