Skip to main content
Glama

Get an incident

get_incident
Read-onlyIdempotent

Retrieve a single incident with all alert attempts, delivery statuses, acknowledgement details, and resolution timing to verify notifications and identify who acknowledged it.

Instructions

Read one incident in full, with every alert sent for it. It has id, monitor_id or heartbeat_id (exactly one is set), started_at, created_at, resolved_at, cause, cause_detail, last_notified_at, acknowledged_at, acknowledged_by, acknowledged_via, acknowledged_by_label, renotify_count (how many reminders listed this incident) and notification_logs (each alert attempt: id, channel_type, destination, event TRIGGERED (the first alert only; reminders are not logged here) or RESOLVED, sent_at, status PENDING, SENT or FAILED, and error; SSL alerts (SSL_EXPIRY, SSL_RENEWAL_OVERDUE, SSL_COVERAGE_LOST), change alerts (CHANGE_DETECTED) and domain alerts (DOMAIN_EXPIRY, DOMAIN_ON_HOLD, DOMAIN_NOT_IN_REGISTRY) are not tied to an incident and never appear here). 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. Use it to tell whether its alerts were delivered and who acknowledged it: acknowledged_by is the Fettle user's uuid (null for a Telegram tap), acknowledged_via the source (DASHBOARD, API_KEY, MCP or TELEGRAM; null when unacknowledged or acknowledged before the source was recorded) and acknowledged_by_label the actor that is not a Fettle user (the Telegram name, the API key name or the MCP client name). MCP means acknowledged through the remote Fettle MCP endpoint (label: the connected app's name, or the API key's name when that connection uses a key); the stdio fettle-mcp package and any REST call with an API key record API_KEY (label: the key's name). For the person's name and email use get_incident_context. destination is an email address, a Telegram chat id, or only scheme://host/… of a webhook. To find incidents use list_incidents; to stop its reminders use acknowledge_incident.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "incident_id": "<incident_id>"
    },
    "name": "get_incident"
  }
}

Input Schema

NameRequiredDescriptionDefault
incident_idYesThe incident's uuid from list_incidents. An id that is not an incident of this organization is a 404.

Output Schema

NameRequiredDescriptionDefault
idYes
causeYesKnown values: TIMEOUT, DNS_FAILURE, CONNECTION_REFUSED, TLS_INVALID, HTTP_4XX, HTTP_5XX, HTTP_UNEXPECTED_STATUS, KEYWORD_MISSING, TOO_MANY_REDIRECTS, TARGET_BLOCKED, PORT_STATE_MISMATCH, INVALID_TARGET, HEARTBEAT_MISSED, HEARTBEAT_FAILED, UNKNOWN.
created_atYesWhen the incident was confirmed (after the monitor's confirmation rounds) and its first alert went out; at or after started_at, usually by seconds to minutes.
monitor_idNo
started_atYesWhen the outage started: the first failing check of the streak, at or before created_at. For a heartbeat, the missed deadline (last ping plus period and grace), or when the /fail ping arrived. Duration and downtime count from here.
updated_atYes
resolved_atYesWhen the incident ended: the check that confirmed recovery (for a heartbeat, the ping that brought it back), or the pause, deletion or plan downgrade that closed it; null while the incident is open.
cause_detailYes
heartbeat_idNo
renotify_countYesHow many reminders listed this incident.
acknowledged_atYesWhen someone acknowledged the incident; null if nobody has.
acknowledged_byYes
acknowledged_viaYes
last_notified_atYesWhen the Down alert went out; null until it has been sent. On incidents opened before reminder digests it can be the last repeat alert instead.
notification_logsNo
acknowledged_by_labelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.9.4
    • addedOutput schema / properties / last_notified_at / description
      Added value: +"When the Down alert went out; null until it has been sent. On incidents opened before reminder digests it can be the last repeat alert instead."
    • changedOutput schema / properties / notification_logs / items / properties / event / description
      Previous value: -"Known values: TRIGGERED, RESOLVED, SSL_EXPIRY, SSL_RENEWAL_OVERDUE, SSL_COVERAGE_LOST, CHANGE_DETECTED, DOMAIN_EXPIRY, DOMAIN_ON_HOLD, DOMAIN_NOT_IN_REGISTRY."New value: +"Known values: TRIGGERED, RESOLVED, SSL_EXPIRY, SSL_RENEWAL_OVERDUE, SSL_COVERAGE_LOST, CHANGE_DETECTED, DOMAIN_EXPIRY, DOMAIN_ON_HOLD, DOMAIN_NOT_IN_REGISTRY, REMINDER."
    • addedOutput schema / properties / renotify_count / description
      Added value: +"How many reminders listed this incident."
  2. Changed4 schema fields changedv1.9.2
    • addedOutput schema / properties / acknowledged_at / description
      Added value: +"When someone acknowledged the incident; null if nobody has."
    • addedOutput schema / properties / created_at / description
      Added value: +"When the incident was confirmed (after the monitor's confirmation rounds) and its first alert went out; at or after started_at, usually by seconds to minutes."
    • addedOutput schema / properties / resolved_at / description
      Added value: +"When the incident ended: the check that confirmed recovery (for a heartbeat, the ping that brought it back), or the pause, deletion or plan downgrade that closed it; null while the incident is open."
    • addedOutput schema / properties / started_at / description
      Added value: +"When the outage started: the first failing check of the streak, at or before created_at. For a heartbeat, the missed deadline (last ping plus period and grace), or when the /fail ping arrived. Duration and downtime count from here."
  3. Changed1 schema field changedv1.6.0
    • addedOutput schema / properties / notification_logs / items / properties / fallback_reason
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Known values: NO_WORKING_CHANNELS, ALL_DELIVERIES_FAILED.",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  4. Changed1 schema field changedv1.4.2
    • changedOutput schema / properties / notification_logs / items / properties / event / description
      Previous value: -"Known values: TRIGGERED, RESOLVED, SSL_EXPIRY, SSL_RENEWAL_OVERDUE, SSL_COVERAGE_LOST, CHANGE_DETECTED, DOMAIN_EXPIRY."New value: +"Known values: TRIGGERED, RESOLVED, SSL_EXPIRY, SSL_RENEWAL_OVERDUE, SSL_COVERAGE_LOST, CHANGE_DETECTED, DOMAIN_EXPIRY, DOMAIN_ON_HOLD, DOMAIN_NOT_IN_REGISTRY."
  5. Changed4 schema fields changedv1.3.0
    • addedOutput schema / properties / acknowledged_by_label
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / acknowledged_via
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Known values: DASHBOARD, API_KEY, MCP, TELEGRAM.",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / notification_logs / items / properties / event / description
      Previous value: -"Known values: TRIGGERED, RESOLVED, SSL_EXPIRY."New value: +"Known values: TRIGGERED, RESOLVED, SSL_EXPIRY, SSL_RENEWAL_OVERDUE, SSL_COVERAGE_LOST, CHANGE_DETECTED, DOMAIN_EXPIRY."
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "started_at",
      -  "resolved_at",
      -  "cause",
      -  "cause_detail",
      -  "last_notified_at",
      -  "acknowledged_at",
      -  "acknowledged_by",
      -  "renotify_count",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "id",
      +  "started_at",
      +  "resolved_at",
      +  "cause",
      +  "cause_detail",
      +  "last_notified_at",
      +  "acknowledged_at",
      +  "acknowledged_by",
      +  "acknowledged_via",
      +  "acknowledged_by_label",
      +  "renotify_count",
      +  "created_at",
      +  "updated_at"
      +]
  6. Changed2 schema fields changedv0.6.1
    • addedInput schema / properties / incident_id / description
      Added value: +"The incident's uuid from list_incidents. An id that is not an incident of this organization is a 404."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "acknowledged_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "acknowledged_by": {
      +      "anyOf": [
      +        {
      +          "format": "uuid",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "cause": {
      +      "description": "Known values: TIMEOUT, DNS_FAILURE, CONNECTION_REFUSED, TLS_INVALID, HTTP_4XX, HTTP_5XX, HTTP_UNEXPECTED_STATUS, KEYWORD_MISSING, TOO_MANY_REDIRECTS, TARGET_BLOCKED, PORT_STATE_MISMATCH, INVALID_TARGET, HEARTBEAT_MISSED, HEARTBEAT_FAILED, UNKNOWN.",
      +      "type": "string"
      +    },
      +    "cause_detail": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "heartbeat_id": {
      +      "anyOf": [
      +        {
      +          "format": "uuid",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "id": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "last_notified_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "monitor_id": {
      +      "anyOf": [
      +        {
      +          "format": "uuid",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "notification_logs": {
      +      "items": {
      +        "properties": {
      +          "channel_type": {
      +            "description": "Known values: EMAIL, TELEGRAM, WEBHOOK, SLACK, DISCORD.",
      +            "type": "string"
      +          },
      +          "destination": {
      +            "type": "string"
      +          },
      +          "error": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "event": {
      +            "description": "Known values: TRIGGERED, RESOLVED, SSL_EXPIRY.",
      +            "type": "string"
      +          },
      +          "id": {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          "sent_at": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "description": "Known values: PENDING, SENT, FAILED.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "channel_type",
      +          "destination",
      +          "event",
      +          "sent_at",
      +          "status",
      +          "error"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "renotify_count": {
      +      "type": "integer"
      +    },
      +    "resolved_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "started_at": {
      +      "type": "string"
      +    },
      +    "updated_at": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "started_at",
      +    "resolved_at",
      +    "cause",
      +    "cause_detail",
      +    "last_notified_at",
      +    "acknowledged_at",
      +    "acknowledged_by",
      +    "renotify_count",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "type": "object"
      +}
  7. First observedv0.5.4

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark this as a safe, idempotent, closed-world read, but the description adds substantial behavioral context beyond them: excluded alert families (SSL, change, domain), the fact that reminders are not logged, null semantics for resolved_at and acknowledged_at, and the timing distinction between started_at and created_at. It does not discuss auth or rate limits, but for a read-only single-record tool the added data caveats are strong.

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

Conciseness2/5

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

The purpose is front-loaded, but the body is a single dense paragraph that enumerates nearly every return field and acknowledgement-source rule. Because an output schema exists, much of that field-by-field detail is redundant and makes the definition harder to scan than necessary.

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 tool with a complete output schema and rich annotations, the definition covers the remaining decision context: how to find incidents, how to stop reminders, which alert types are out of scope, and how to interpret acknowledgement and timing fields. Nothing needed for correct invocation appears missing, though some of it is over-delivered.

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

Parameters3/5

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

The sole parameter is fully documented in the schema (uuid from list_incidents, 404 for a non-organization incident), and the description adds no syntax or selection detail for incident_id beyond 'read one incident'. With 100% schema coverage, the baseline of 3 is appropriate.

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?

Opens with a specific verb and resource ('Read one incident in full') and states the scope ('with every alert sent for it'). It also explicitly distinguishes the tool from list_incidents and acknowledge_incident, so an agent can tell what this tool is for without opening the 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?

Ends with explicit alternatives: use list_incidents to find incidents and acknowledge_incident to stop reminders. It also gives a positive use case ('Use it to tell whether its alerts were delivered and who acknowledged it'), making the when-to-use guidance concrete.

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