Skip to main content
Glama

List open incidents

list_open_incidents
Read-onlyIdempotent

Fetch an agent's open incidents from its monitors, newest first. Use it to see what broke between runs and decide whether to retry or escalate.

Instructions

Requires the read scope or higher. Returns an agent's failure inbox: every open incident on the monitors it owns, newest first, with context no single failure body carries. For learning, at a run's start, what broke meanwhile. failure_signature.occurrences: how often this exact failure has been seen (first_seen, last_seen, fingerprint), which separates retry from escalate. failed_step: the last step reported (for 'stalled', where the live run is stuck). exit_code: 137 (usually OOM) and 1 differ. duration_vs_normal: e.g. '8.2x the typical run (41m vs 5m), from 30 archived days', plus run_ms, typical_ms, ratio, days_sampled (0: the norm is the median of 5+ recent runs). cause: 'fail' (the job reported an error), 'silence' (it never reported; usually the scheduler or host) or 'upstream' (consecutive model-provider API errors; detail names the last). Also body_excerpt, run_id, ci.run_url. A missing field is no evidence, not none, normal or a clean exit; exit_code 0 marks a success that failed its expectations. add_incident_note takes an entry's incident_id. untrusted_fields names the data fields LastPing did not write (job output, exporter data or user-supplied names).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax incidents to return (default 50, max 200). Newest first, so a small limit drops the oldest open incidents, not the newest.
agent_idYesAgent UUID (from register_agent or list_agents). The inbox covers every monitor this agent owns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations cover the read-only/idempotent profile, and the description still adds the auth requirement ('Requires the read scope or higher'), the field-level semantics of the return payload, and an important caveat that a missing field is 'no evidence, not none, normal or a clean exit.' It also flags `untrusted_fields` as data LastPing did not write -- meaningful context not present in structured data.

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

Conciseness3/5

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

Purpose and auth are front-loaded, but the body collapses into a dense run-on field reference spanning failure_signature, exit_code, duration_vs_normal, cause and untrusted_fields with little structural separation. Length is partly justified by the absent output schema, but readability suffers.

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?

With no output schema and only two params, the description carries the return-value burden thoroughly: ordering, per-field meaning, numeric codes (137 vs 1), sample sizes, and cause categories are all explained. An agent has enough to interpret results correctly.

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?

Schema coverage is 100% with both parameters fully documented, including defaults and max. The description only echoes this ('an agent's failure inbox', 'newest first') without adding format or syntax beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

Opens with a concrete verb+resource and precise scope: 'Returns an agent's failure inbox: every open incident on the monitors it owns, newest first.' The 'open' qualifier implicitly separates it from list_incidents, though no sibling is named explicitly, keeping it short of a 5.

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

Usage Guidelines4/5

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

'For learning, at a run's start, what broke meanwhile' gives a clear usage context and timing. It stops short of naming alternatives (list_incidents, get_incident) or stating when not to use it, so no exclusions are provided.

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