Skip to main content
Glama

list alerts

list_alerts
Read-onlyIdempotent

Fetch fired alerts newest first with payloads, enabling automated reactions to quality, cost, or drift events without checking email.

Instructions

List every alert this workspace has fired, newest first, with the payload the notification carried, so a pipeline can react to quality, cost, or drift events without reading a mailbox. GET /v1/alerts (API-key scope: read). Returns: { alerts: [{ id, kind, fired_at (ISO), payload (JSON object: criterion, model, rates, reason as applicable) }], next_cursor: string|null } Notes: Keyset pagination: pass next_cursor back as cursor until it is null. 400 when since is not an ISO date or limit is outside 1..200. Cache-Control: no-store.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoFilter to one alert kind.
limitNoPage size, integer 1..200. Default: 50.
sinceNoISO-8601 datetime; only alerts fired at or after this instant. 400 if unparseable.
cursorNoOpaque cursor from a previous response's next_cursor (the id of the last alert on that page). Resumes after that alert.
Install Server

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well beyond the readOnlyHint/idempotentHint annotations by detailing newest-first ordering, the exact response envelope, keyset pagination semantics, 400 error conditions, and Cache-Control: no-store. It also clarifies that alerts carry notification payloads, which is non-obvious behavioral context. No contradiction with annotations exists.

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

Conciseness5/5

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

The description is information-dense but structured effectively: core purpose first, then endpoint/auth scope, then return shape, then pagination/error notes. Every sentence earns its place, and the most important behavioral facts are front-loaded.

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?

Despite having no output schema, the description fully defines the return structure including alert fields, payload subfields, and next_cursor. It also covers pagination, validation failures, and caching, making the tool safely callable end-to-end without needing external documentation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaningful extra semantics by explaining how next_cursor is passed back as cursor until null, and by specifying when since and limit cause 400 errors; these constraints enrich the schema's otherwise adequate parameter descriptions without redundancy.

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 begins with a precise verb-resource pair: 'List every alert this workspace has fired, newest first, with the payload the notification carried.' It clearly distinguishes alerts as their own resource type from sibling log/tombstone/refusal tools, gives the HTTP endpoint, and explains the practical purpose (reacting to quality, cost, or drift events).

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?

The description gives clear context for when to use this tool: to retrieve fired alerts with their payloads for pipeline reactions, and it documents pagination and error behavior. It does not explicitly name sibling alternatives or exclusion conditions, but the resource distinction from list_logs, list_criteria, and list_refusals is strong enough for an agent to select it correctly.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/omnia-v/errorbar-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server