Skip to main content
Glama

List Alerts

list_alerts
Read-only

List alerts that have fired, newest first.

This is the "what is broken" tool. An alert is opened by a detector and stays open, accumulating occurrences, until the detector resolves it — so an open alert with a recent last_seen is still happening.

workspace: optional workspace id, name, or org-name/workspace-name when the same name occurs in two of your orgs (defaults to your default). status: open or resolved; omit for both. kind: narrow to one detector — consistent_error_pattern, swallowed_error, tool_loop, context_rot, or custom. Every custom rule shares the kind "custom", so use rule_id to isolate one custom rule. rule_id: narrow to the firings of one specific rule (from list_alert_rules). service: exact service name. step: exact step (span) name. search: case-insensitive match on the alert title. acknowledged: true or false; omit for both. hours: how far back to look, on last_seen. Defaults to 24. The server itself is unbounded if no window is given, which would scan all history. limit: rows to return, at most 200.

Example:

What alerts are open right now?

{ "name": "list_alerts", "arguments": { "status": "open" } }

Example:

Show me the errors alert for the checkout service this week.

{ "name": "list_alerts", "arguments": { "service": "checkout", "hours": 168 } }

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_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
stepNo
hoursNo
limitNo
searchNo
statusNo
rule_idNo
serviceNo
workspaceNo
acknowledgedNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Adds real behavior beyond the readOnly/openWorld annotations: ordering (newest first), the open-alert-accumulates-occurrences model, the 24h default window on last_seen, the warning that an unbounded window scans all history, and a limit cap of 200. With annotations already declaring this a safe read, a 3 reflects solid added context but no discussion of result volume or truncation effects.

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?

Front-loaded with purpose and lifecycle before the parameter glossary; every parameter line earns its place. The two worked examples add length but demonstrate combining filters, so the size is defensible rather than padded.

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 10-parameter, zero-required read tool with an output schema, the description covers purpose, semantics, defaults, edge pitfalls, and usage examples. Return values are intentionally omitted because the output schema carries them.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden, and it does: every parameter is explained with meaning beyond its name, including allowed kind values, the shared 'custom' kind pitfall, rule_id provenance, case-insensitive title search, exact-match semantics for service and step, and defaults for hours and limit.

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+resource and a scope ('alerts that have fired, newest first'), then pins the concept down as the "what is broken" tool and explains the alert lifecycle, which separates it from list_alert_rules and get_alert without ambiguity.

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?

Usage context is clear and example-driven (open alerts now, checkout errors this week), and it points to list_alert_rules as the source for rule_id. It stops short of explicit when-not-to-use guidance, such as directing agents to get_alert for a single alert's detail.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.