Skip to main content
Glama

What changed before an incident

what_changed
Read-onlyIdempotent

Compares an incident window against the equal preceding baseline to reveal changes in exceptions, network, jank, logs, and memory, with directional evidence for each dimension.

Instructions

Evidence from the window leading up to a failure, plus a baseline comparison: the incident window measured against the equal window before it, per dimension (exceptions, network volume/failures/latency p50/p95, jank ratio, log errors, memory) with directions new/spiked/increased/decreased and citable evidence. Anchors on the given eventId, or the most recent exception, or the current time. Network uses interval matching, so a request that started before the window but failed inside it still counts. When the baseline predates observation, directions are unknown rather than fabricated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventIdNoAnchor on this event (e.g. 'exc_00142'). Defaults to the most recent exception.
windowMsNoHow far back to look, in milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.21.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, but the description adds substantive semantics beyond them: network uses interval matching so a request failing inside the window counts even if it started earlier, and baseline directions are reported as unknown rather than fabricated when observation predates the window. These edge-case disclosures are exactly the kind of context annotations cannot carry.

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?

It is one dense, front-loaded block that leads with what is returned before the mechanics. Every clause contributes information (dimensions, directions, anchoring, interval matching, baseline honesty) with no filler, though the nested parentheticals make it heavier than it needs to be.

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?

With no output schema, the burden of describing returns falls on the description, and it does so thoroughly: dimensions, direction vocabulary, and citable evidence are all covered, as are anchoring fallbacks and the baseline edge case. Safety behavior is covered by annotations, so the only mild shortfall is the absence of any usage routing against siblings.

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 both parameters are already well documented, including the eventId default and windowMs bounds. The description largely restates the anchoring default and adds no format or constraint detail 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.

Purpose5/5

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

The description names a specific analytical operation — measuring the incident window against an equal preceding baseline, per dimension, with directions and citable evidence. That baseline-comparison framing distinguishes it from plain sibling readers like get_timeline or get_exceptions, and the listed dimensions make the resource concrete.

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?

Usage is only implied: it is for reconstructing what preceded a failure, and the anchoring rules (eventId, else most recent exception, else now) are stated. There is no explicit when-to-use/when-not or routing to alternatives such as diagnose_performance or explain_diagnosis, which is a real gap given how many overlapping diagnostic siblings exist.

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