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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bucket_id": "<bucket_id>"
    },
    "name": "latest_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoThe provider's own event name, matched exactly (e.g. payment_intent.succeeded).
tokenNoOnly when connected without an API key: the api_token that create_bucket returned for this bucket.
providerNoFilter to a provider attributed at ingest (e.g. stripe, github).
bucket_idYesThe endpoint id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / token
      Added value: +{
      +  "description": "Only when connected without an API key: the api_token that create_bucket returned for this bucket.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/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 burden and does disclose the key behaviors: a single event is returned with headers, body and delivery results, and a 404 results when nothing matches. That error semantics detail is genuinely useful and not derivable from the schema. It omits read-only status and any auth/permission specifics beyond the token parameter documented in the schema.

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 sentences, front-loaded with the verb and scope, then the return shape and error case. The colloquial 'what did Stripe last send me' earns its place by making the use case vivid without adding padding.

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?

There is no output schema, and the description compensates by describing the returned payload (headers, body, delivery results) and the no-match outcome. For a four-parameter read tool, nothing an agent needs in order to call it correctly is missing.

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 baseline is 3 and the schema already explains the provider, type, bucket_id and token parameters in detail. The description reinforces the filtering behavior but adds no format or matching nuance beyond the schema, and never mentions the token parameter.

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 ('Get the single most recent event captured by a bucket') and narrows the scope to exactly one event, which cleanly separates it from list_events and get_event. The optional provider/event-type filtering is spelled out, so an agent knows precisely what set is being queried.

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 'one-shot answer to "what did Stripe last send me"' framing gives a clear situation in which to reach for this tool rather than a listing tool. It stops short of explicitly naming an alternative or stating when not to use it (e.g. when multiple events are wanted, use list_events), so it is clear context without 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.