Skip to main content
Glama

search_events

Read-onlyIdempotent

Searches the organization's recent raw events (newest first) by text, event name, level, delivery status, customer user_id, route, source and time, with each event's latest deliveries. Bounded by the plan's retention. Page with next_cursor until exhausted is true; a short page with a cursor means the search window ended, not the history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgNoOrganization slug; omit for the default organization. See list_organizations.
levelNo
limitNo
sinceNoEarliest receipt time: ISO-8601 with offset, YYYY-MM-DD (org-local day), or 30m/24h/7d/2w back.
untilNoLatest receipt time, same forms as since.
cursorNonext_cursor from the previous page.
searchNoText to find in the event name or message; at least 3 characters.
statusNoDelivery status of the event.
user_idNoThe sender's customer identifier, exact match (see get_user_timeline).
route_idNoA route id (rte_…) from describe_setup.
source_idNoA source id (sou_…) from describe_setup.
event_nameNoExact event name, e.g. payment-received.
include_payloadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior. The description adds substantial behavioral context beyond that: results are raw events ordered newest-first, each includes latest deliveries, results are bounded by plan retention, and pagination has a non-obvious signal where a short page with a cursor means the search window ended. This is exactly the kind of nuance an agent needs to interpret results correctly.

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?

Two dense sentences carry all the information with no filler. The core purpose and ordering are front-loaded, and the non-obvious pagination caveat is placed second where it can be noticed before use. Every clause earns its place without repeating schema content.

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 13-parameter search tool with no output schema, the description covers ordering, retention bounds, pagination behavior, and result shape, which is unusually complete. It leaves minor gaps such as the exact meaning of include_payload and how filters combine, but these are small relative to the operational detail already provided.

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 77%, so the schema already documents most parameters. The description adds value by grouping the filter dimensions, clarifying that user_id is the sender's customer identifier, and explaining that results include each event's latest deliveries, which informs interpretation beyond individual parameter descriptions. It doesn't detail include_payload's effect, but the schema covers most of the parameter semantics.

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 states a specific verb ('Searches'), a precise resource ('organization's recent raw events'), and enumerates the filter dimensions: text, event name, level, delivery status, user_id, route, source, and time. It also specifies the ordering (newest first) and that each event includes its latest deliveries, which clearly differentiates it from siblings like event_stats or get_event even without naming them.

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 description gives strong operational context, such as retention bounds and pagination semantics, but it never explicitly says when to prefer search_events over get_event, event_stats, or get_user_timeline, nor when not to use it. Usage context is implied rather than stated with alternatives or exclusions.

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