Skip to main content
Glama

Alerts Events

alerts_events
Read-onlyIdempotent

Read the events the current user's alert rules produced, oldest first (the feed behind GET /v1/alerts/events). Page forward by passing the returned next_cursor back as cursor; an empty page returns the same cursor, so a poller keeps it and asks again. A page also ends once its events pass about 2 MB (a wallet-orders event can list 200 orders), so it can hold fewer than limit events with has_more true: keep paging, nothing is skipped. A wallet-orders event keeps its orders list 1 hour after the alert (until its deliveries are done, if later); after that it has its totals, orders_removed: true and a note. Each event has id, rule_id, alert_label, alert_type, created_at, event (what happened: the transfer, fill, liquidation, bias flip, proximity crossing, a pass of wallet orders, Polymarket trade, price move or resolution) and delivery: one item per channel it went to with id, channel, channel_key, status, attempts, last_attempt_at, next_attempt_at (while it waits) and last_error as a code only (http 500, timeout, network; on a sent delivery, the last failed attempt before it). A delivery's id is what alerts_resend_delivery takes. skipped: each of the rule's channels that got no delivery for the event, channel_key and reason as a code (daily_cap: past the rule's max_triggers_day; daily_email_cap, in_earlier_email, channel_not_found, channel_disabled, ...); empty for a rule with no channel. Events are kept for 15 days. Read-only; only the user's own rules appear.

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

Input Schema

NameRequiredDescriptionDefault
limitNoEvents per page, 1 to 500. Default 100.
cursorNoThe previous page's `next_cursor`. Omit for the oldest retained event.
rule_idNoOnly the events of this alert (its id from alerts_list).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish that this is read-only and idempotent, and the description adds substantial behavior beyond them: 2 MB page truncation, cursor polling semantics, 1-hour retention of wallet-order details, delivery/skipped field meanings, and 15-day event retention. It also confirms visibility is limited to the current user's own alert rules, consistent with the annotations.

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?

The description is front-loaded with the core purpose and paging behavior, and the dense detail about event fields is relevant because there is no output schema. However, it is a single long paragraph that would be easier to scan if structured into distinct sections for paging, event content, and retention.

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?

Given the lack of an output schema and the complexity of the event payload, the description is unusually complete: it documents the event fields, delivery and skipped structures, paging edge cases, and retention rules. An agent has enough information to invoke the tool correctly and interpret the main response shapes.

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, but the description adds meaningful semantics beyond the schema: `limit` may yield fewer events due to the 2 MB page cap, and an empty page returns the same cursor for pollers. It also connects `rule_id` to the event payload and `alerts_list`, though less explicitly than the cursor and limit guidance.

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: 'Read the events the current user's alert rules produced', and identifies the underlying feed endpoint. It also distinguishes the event feed from sibling rule-management tools by describing the produced events and their delivery metadata.

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?

Gives clear operational guidance for paging: pass `next_cursor` back as `cursor`, keep polling when an empty page returns the same cursor, and continue when `has_more` is true despite fewer than `limit` events. It does not explicitly contrast this tool with siblings such as `stream_events` or state when to prefer one over the other.

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.