Skip to main content
Glama

Wait for an event

wait_for_event
Read-only

Long-poll (up to 55 s) for events such as application.created, approval_request.decided, contract.work_submitted, message.created. Returns immediately with anything new after after.

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": "wait_for_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoLast event id you have seen
typesNo
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds genuinely useful non-schema behavior: it is a blocking call that can hold for up to 55 seconds and returns immediately if new events exist. It omits what happens at timeout (empty result vs. error) and whether the caller must re-invoke, which are the key behavioral facts for a long-poll.

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?

Two compact sentences, front-loaded with the polling behavior and the latency bound, with no filler. The second sentence exists mainly to clarify the `after` cursor semantics and earns its place.

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?

For a three-parameter, no-output-schema tool this is close to adequate: the caller learns the event domain, the cursor semantics and the blocking latency. However, with no output schema anywhere, the description should say what a return value looks like (a list of events with ids) and what an empty timeout return means, since that determines whether the agent should 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 coverage is only 33%: `after` is documented in the schema, while `types` and `timeout_s` are not. The description partly compensates by listing valid event-type examples, hinting at what `types` accepts, and by stating the 55 s ceiling that bounds `timeout_s`. It never explicitly ties these strings to the `types` parameter, so the mapping is inference rather than explanation.

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?

States a specific verb and resource (long-poll for events) and enumerates concrete event types like application.created and message.created, which makes the tool's domain unmistakable. It does not explicitly contrast itself with a sibling such as read_messages, so it stops short of full sibling differentiation.

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 'Returns immediately with anything new after `after`' implies the intended loop pattern (call, track the last event id, call again), but this is left for the agent to infer. There is no explicit statement of when to use this versus polling or fetching messages directly, and no guidance on what to do when it returns empty.

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