Skip to main content
Glama

wait_for_event

Read-onlyIdempotent

Wait for the next event in an inbox after a cursor, up to 30s. Auth: Authorization Bearer read token header.

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": {
      "inbox_id": "<inbox_id>"
    },
    "name": "wait_for_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoOnly return the first event with an id greater than this cursor (0 for the first event).
inbox_idYesThe inbox id returned when the inbox was created (private; the slug in the ingest URL is the public part).
timeout_msNoHow long to wait in milliseconds (max 30000).
body_containsNoOnly return an event whose body contains this text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / inbox_id / description
      Previous value: -"The inbox id returned when the inbox was created."New value: +"The inbox id returned when the inbox was created (private; the slug in the ingest URL is the public part)."
  2. Changed4 schema fields changed
    • addedInput schema / properties / after / description
      Added value: +"Only return the first event with an id greater than this cursor (0 for the first event)."
    • addedInput schema / properties / body_contains / description
      Added value: +"Only return an event whose body contains this text."
    • addedInput schema / properties / inbox_id / description
      Added value: +"The inbox id returned when the inbox was created."
    • addedInput schema / properties / timeout_ms / description
      Added value: +"How long to wait in milliseconds (max 30000)."
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Beyond the annotations (readOnly, idempotent, closed-world), the description adds the 30s wait bound and the required Bearer read-token header, which are genuinely useful. However, it omits what happens when the timeout expires (empty result vs. error) — the single most important behavior for a blocking wait tool.

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 compact sentences with the core semantics front-loaded and the auth requirement as a trailing note. No filler words or redundant restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description should say what a successful call returns (the event object) and what an expired wait returns; it covers neither. Given the blocking, stateful nature of the tool, that leaves a meaningful gap for an agent wiring up a poll loop.

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 every parameter is already documented in the schema, and the description only restates the cursor ('after') and timeout concepts. The baseline applies; it adds no format or interaction 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 states a specific verb and resource ('wait for the next event in an inbox') plus the key scoping conditions ('after a cursor, up to 30s'). This clearly distinguishes it from siblings like list_events and get_event, which read rather than block.

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 long-poll framing and cursor mention imply the use case (streaming/waiting for new events), but no alternative is named and there is no explicit when-not guidance versus list_events or get_event. An agent can infer the choice, but it is not stated.

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.