Skip to main content
Glama

get_incident_timeline

Get anomaly incidents as ordered timelines to identify what happened, in what sequence, and whether recovery occurred. Includes grouped events, sequence-pattern matches, and recovery status.

Instructions

Get anomaly incidents as ordered timelines. Anomalies on one instance or topology that follow each other closely are grouped into one incident, in the order they happened, with any matched multi-step sequence pattern and a recovery status (active, recovering, recovered, degraded when signals stay open long after the incident went quiet, or unknown when recovery can no longer be measured, with those metrics in recovery.unknownSignals). An entry that is about one cluster node names it in node (nodeId, address, role, plus shardId and availabilityZone when known, and collected: false when no connection of the monitor points at that node, so its own metrics are not gathered; connectionId names the connection that collects it). A sequence match can carry values: the settings its recommendations name, each with the current value and a target computed from the instance (setting, current, target, unit, and nodeAddr when the value is for one node). A hard output-buffer target includes the soft limit when that buffer is already past it. Use to answer "what happened, in what order, and has it recovered".

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": "get_incident_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax incidents to return, newest first (default 20)
startTimeNoStart time (Unix timestamp ms, default 24h ago)
instanceIdNoOptional instance ID override

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.54.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: it discloses the grouping/ordering logic, the five-way recovery status vocabulary, where unmeasurable recovery surfaces (recovery.unknownSignals), and the meaning of `collected: false` for a cluster node whose metrics are not gathered. Remaining gaps are minor: it never states explicitly that this is a read-only operation or discusses permissions/limits, though 'Get' strongly implies read.

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?

The purpose is front-loaded in the first sentence, which is good. But the body is a dense run-on paragraph mixing grouping logic, recovery states, node fields, and setting values; with no output schema it must cover returns, but bulleted or segmented structure would make the status vocabulary and node-field semantics far easier to scan.

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

Completeness4/5

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

There is no output schema, so the description must convey the return shape, and it does: incident ordering, sequence pattern matches, recovery statuses, node identification fields, and per-node setting values with current/target. Given three optional, fully documented parameters and no annotations, this is nearly complete; only the interaction between the time-window parameter and incident grouping is left unstated.

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 description coverage is 100%, so limit (default 20, newest first), startTime (default 24h ago), and instanceId are already fully documented in the schema. The description adds nothing about parameter behavior — notably it does not explain how the incident grouping interacts with the time window or instanceId override. Baseline 3 is appropriate.

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?

States a specific verb and resource: 'Get anomaly incidents as ordered timelines', and immediately clarifies that closely-following anomalies on one instance/topology are grouped into a single incident ordered by time. That is a concrete distinction from a raw anomaly feed, but it never names or routes away from the sibling 'get_anomalies', so an agent must infer the division of labor.

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

Usage Guidelines3/5

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

The closing line 'Use to answer "what happened, in what order, and has it recovered"' gives a usable when-to-use framing. However, there is no explicit exclusion (e.g. when to prefer get_anomalies or get_cluster_node_stats) and no prerequisites such as whether an instanceId override is needed or how it interacts with connection scoping.

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