Skip to main content
Glama

latest_event

Get the single most recent event captured by a bucket, optionally filtered by provider and event type. Returns one event with its headers, body and delivery results — the one-shot answer to "what did Stripe last send me". 404 if nothing matches, so you never index into an empty list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoThe provider's own event name, matched exactly (e.g. payment_intent.succeeded).
providerNoFilter to a provider attributed at ingest (e.g. stripe, github).
bucket_idYesThe endpoint id.

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and it does well by specifying what is returned ('headers, body and delivery results') and the error condition ('404 if nothing matches'). This gives the agent a solid understanding of the tool's runtime behavior, though it does not discuss auth or rate limits.

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 concise and front-loaded with the core action, followed by helpful context and an illustrative example. Every sentence contributes value: scope, return contents, and error behavior.

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 tool with three parameters and no output schema, the description covers the essential context: what it returns, how filtering works, and what happens when no event matches. It stops short of detailing the delivery results structure, but that is likely acceptable given the tool's simplicity.

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 coverage is 100%, so the parameter descriptions already explain 'type', 'provider', and 'bucket_id'. The description merely restates that filtering by provider and event type is possible, adding no new semantic detail beyond the schema.

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 starts with a specific verb-resource pair: 'Get the single most recent event captured by a bucket', which clearly identifies the tool's function and scope. It also differentiates from siblings like get_event or list_events by emphasizing 'single most recent' and optional filters.

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 provides clear context for when to use the tool: as 'the one-shot answer to what did Stripe last send me'. It implies usage for retrieving a single latest event without explicitly contrasting with alternatives like list_events, but the purpose is unambiguous.

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.

TDQS

A4/5.0
Disambiguation5/5

Each tool targets a distinct resource and action: buckets, events, schemas, deliveries, forwarding, verification, replay, and waiting. Even similar pairs like latest_event vs list_events are clearly differentiated by purpose, with no overlapping responsibilities.

Naming Consistency4/5

Most tools follow a consistent verb_noun pattern with underscores, such as create_bucket, list_events, and delete_bucket. The only slight deviation is 'latest_event', which uses an adjective instead of a verb, but it remains intuitive and does not disrupt the overall predictability.

Tool Count4/5

At 17 tools, the set is slightly above the typical well-scoped range of 3-15, but the domain covers buckets, events, schemas, deliveries, configuration, and more, so each tool serves a distinct and justified purpose. The count feels appropriate for the platform's breadth rather than excessive.

Completeness3/5

The set covers the primary lifecycle for buckets, events, and schemas, including create, read, list, and delete operations. However, there is no way to update or delete a forwarding rule after creation, and no explicit update operation for bucket metadata, leaving notable gaps in managing configurations.