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, silent_failure, tool_loop, 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 } }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
stepNo
hoursNo
limitNo
searchNo
statusNo
rule_idNo
serviceNo
workspaceNo
acknowledgedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover readOnlyHint and openWorldHint, yet the description adds substantive domain behavior: alerts stay open until the detector resolves them, an open alert with a recent last_seen is still occurring, and the server is unbounded if no window is given (a real performance hazard). This is genuinely useful context beyond the safety profile.

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-loads the one-line purpose and the 'what is broken' framing before parameter docs and examples. It is long, but the length is earned given 10 undocumented parameters; only mild tightening is possible.

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?

An output schema exists, so return values need not be described. For a read-only, fully filterable list tool the description covers purpose, filtering semantics, edge cases (unbounded scan), and examples — nothing an agent needs to invoke it correctly is missing.

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 coverage is 0%, so the description carries the full burden and does so: it defines workspace format, status values, the kind enum and its 'custom' caveat, the distinction between kind and rule_id, and defaults/ranges for hours and limit (at most 200). All 10 parameters are given meaning beyond their names.

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 ('List alerts that have fired, newest first') and frames the tool's role as the "what is broken" tool, clearly distinguishing it from get_alert (single) and list_alert_rules (rule definitions). An agent can identify the right sibling without opening any schema.

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?

Provides concrete usage context via two worked examples (open alerts now; errors for a service this week) and routes the agent to list_alert_rules as the source of rule_id. It does not explicitly state when not to use it versus get_alert/ack_alert, but the conditions that select it are clear.

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.

Resources