Skip to main content
Glama

List incidents

list_incidents
Read-onlyIdempotent

List internal incidents for an organization, newest first, with filters for check, state, and start-time range; supports pagination and cursor polling for new incidents.

Instructions

List internal incidents (active or resolved) for the organization, newest first, up to 100 per page. checkUid, state, since and until combine with AND, and since/until bound the incident start time, so they also apply on top of a cursor. Use order=asc with the returned cursor to poll for new incidents: the cursor is then always returned and means strictly after (rows younger than 5 s are held back); changes to existing incidents are not listed again. Use diagnose_check for one check's incidents plus its current health, get_incident for one incident's timeline, and get_status_page include=incidents for the customer-facing entries. Read-only: works with mcp:read tokens.

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

NameRequiredDescriptionDefault
sizeNoMax results (1-100, default 20).
withNoComma-separated extra fields: check — include the underlying check (slug, type, config) Example: "check".
orderNoSort order on start time: "desc" (default, newest first) or "asc" (oldest first; the cursor then means strictly after, and is always returned).
sinceNoLower bound on incident start time (RFC3339), e.g. "2026-05-03T00:00:00Z".
stateNoComma-separated incident states. Allowed: active, resolved. Example: "active" or "active,resolved".
untilNoUpper bound on incident start time (RFC3339), e.g. "2026-05-04T00:00:00Z".
cursorNoOpaque pagination cursor returned by a previous response. Omit on the first page.
checkUidNoComma-separated check UIDs or slugs to filter by, e.g. "api-prod,db-prod". At most 100 entries.

Output Schema

NameRequiredDescriptionDefault
dataNoIncidents on this page.
paginationNoPage state for the filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.46.0
    • changedInput schema / properties / checkUid / description
      Previous value: -"Comma-separated check UIDs or slugs to filter by, e.g. \"api-prod,db-prod\"."New value: +"Comma-separated check UIDs or slugs to filter by, e.g. \"api-prod,db-prod\". At most 100 entries."
  2. Changed9 schema fields changedv0.42.0
    • addedInput schema / properties / checkUid / maxLength
      Added value: +2048
    • addedInput schema / properties / cursor / maxLength
      Added value: +2048
    • addedInput schema / properties / cursor / minLength
      Added value: +1
    • addedInput schema / properties / order
      Added value: +{
      +  "description": "Sort order on start time: \"desc\" (default, newest first) or \"asc\" (oldest first; the cursor then means strictly after, and is always returned).",
      +  "maxLength": 2048,
      +  "type": "string"
      +}
    • addedInput schema / properties / since / maxLength
      Added value: +2048
    • addedInput schema / properties / state / maxLength
      Added value: +2048
    • addedInput schema / properties / until / maxLength
      Added value: +2048
    • addedInput schema / properties / with / maxLength
      Added value: +2048
    • changedOutput schema / properties / pagination / properties / cursor / description
      Previous value: -"UID of the last incident on a full page; not applied when passed back."New value: +"Opaque cursor naming the last incident; pass it back as cursor."
  3. Changed2 schema fields changedv0.41.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / additionalProperties
      Added value: +false
  4. Changed1 schema field changedv0.38.5
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "data": {
      +      "description": "Incidents on this page.",
      +      "items": {
      +        "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"
      +          },
      +          "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"
      +          },
      +          "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"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "pagination": {
      +      "description": "Page state for the filter.",
      +      "properties": {
      +        "cursor": {
      +          "description": "UID of the last incident on a full page; not applied when passed back.",
      +          "type": "string"
      +        },
      +        "size": {
      +          "description": "Page size used for this response.",
      +          "type": "integer"
      +        },
      +        "total": {
      +          "description": "Total incidents matching the filter.",
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  5. 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 cover the safety profile (readOnly, idempotent, non-destructive), yet the description still adds real behavioral detail beyond them: cursor meaning under order=asc, the 5-second hold-back for young rows, the fact that updates to existing incidents are not re-listed, and that it works with mcp:read tokens. These are exactly the subtleties that cause incorrect usage if undisclosed.

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?

Purpose and scope are front-loaded, then pagination semantics, then sibling routing -- a sensible order. It is dense and unpaced as a single block, but essentially every clause carries information an agent needs, so nothing meaningful is wasted.

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?

Return values need not be explained because an output schema exists. For an eight-parameter list tool with pagination, the description covers filtering composition, cursor behavior, ordering, page limits, and auth requirements -- everything needed to invoke it correctly.

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 description coverage is 100%, so per-parameter definitions are already handled and the baseline would be 3. The description earns the extra point by documenting cross-parameter semantics the schema does not state: checkUid, state, since and until combine with AND, since/until bound incident start time, and those bounds apply on top of a cursor.

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 with scope: 'List internal incidents (active or resolved) for the organization, newest first, up to 100 per page.' The state scope, ordering, and page cap are all declared up front, so an agent knows exactly what this returns 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?

Explicitly routes the agent away from this tool three times: diagnose_check for one check's incidents plus health, get_incident for a single timeline, and get_status_page include=incidents for customer-facing entries. It also prescribes the polling pattern (order=asc plus returned cursor) that an agent would otherwise have to guess.

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