Skip to main content
Glama

List events

list_events
Read-onlyIdempotent

Read usage events (paginated, read-only). Filter by meter, provider, consumer_class (internal|external|unknown), channel, outcome (ok|error), and ISO date range [since, until). Test-flagged events are excluded unless include_test=true. Returns events + next_cursor.

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

Input Schema

NameRequiredDescriptionDefault
limitNoOptional. The most items to return.
sinceNoOptional. ISO-8601 timestamp: only items at or after this time.
untilNoOptional. ISO-8601 timestamp: only items before this time.
cursorNoOptional. The cursor from your previous answer, to fetch the next page.
channelNoOptional filter: the channel the events came through.
outcomeNook or error. Feeds the SLA report.
meter_idNoThe meter id returned by create_meter.
providerNoAgent id of the party providing the service.
include_testNoOptional. Include events from meters flagged as test. Default false.
consumer_classNoOptional filter: internal, external or unknown.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed10 schema fields changed
    • addedInput schema / properties / channel / description
      Added value: +"Optional filter: the channel the events came through."
    • addedInput schema / properties / consumer_class / description
      Added value: +"Optional filter: internal, external or unknown."
    • addedInput schema / properties / cursor / description
      Added value: +"Optional. The cursor from your previous answer, to fetch the next page."
    • addedInput schema / properties / include_test / description
      Added value: +"Optional. Include events from meters flagged as test. Default false."
    • addedInput schema / properties / limit / description
      Added value: +"Optional. The most items to return."
    • addedInput schema / properties / meter_id / description
      Added value: +"The meter id returned by create_meter."
    • addedInput schema / properties / outcome / description
      Added value: +"ok or error. Feeds the SLA report."
    • addedInput schema / properties / provider / description
      Added value: +"Agent id of the party providing the service."
    • addedInput schema / properties / since / description
      Added value: +"Optional. ISO-8601 timestamp: only items at or after this time."
    • addedInput schema / properties / until / description
      Added value: +"Optional. ISO-8601 timestamp: only items before this time."
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is clear. The description adds meaningful behavioral context beyond annotations: test-flagged events are excluded unless include_test=true, and the response includes events plus next_cursor. It does not detail rate limits or authentication needs, but it covers the key filtering and exclusion behavior.

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 operation and is generally tight: four sentences covering read-only pagination, filters, test exclusion, and return shape. It is slightly list-heavy but every sentence contributes useful information, and there is no filler.

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?

For a 10-parameter read tool with full annotation coverage and an output schema, the description is sufficiently complete. It explains the filtering dimensions, test-event exclusion, and pagination behavior. Minor gaps like the default limit are already handled by the schema, so no critical information is missing for correct invocation.

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 the input schema already documents all ten parameters, including enum values for consumer_class and outcome and the half-open ISO date range. The description restates these filters but adds little semantic detail beyond what the schema provides. A baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

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

The description states a specific verb and resource: 'Read usage events (paginated, read-only).' It clearly identifies the event-level resource and mentions pagination. However, it does not explicitly differentiate this tool from siblings like usage_summary or usage_timeseries, so an agent must infer that this is for raw event data rather than aggregated metrics.

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?

The phrase 'Read usage events' implies when to use the tool, and the filter list suggests it is for querying event records. But there is no explicit when-to-use guidance relative to alternatives such as usage_summary or usage_timeseries, and no when-not conditions are stated. The usage is therefore implied rather than clearly directed.

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.