Skip to main content
Glama

events

Wait for events from prompted sessions and receive them with session and agent identifiers. Optionally batch events within a coalescing window to reduce overhead.

Instructions

Block until any prompted session produces events. Returns events stamped with sessionId and agentId. Supports optional Nagle-style coalescing to batch events across sessions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutMsNoMax wait time in ms. Returns empty on timeout.
nagleMsNoCoalescing window in ms. Batches events arriving within this window. Default: 0 (immediate).
Behavior4/5

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

The description discloses key behaviors: blocking nature, return format (events with sessionId and agentId), and Nagle-style coalescing. No annotations are present, so description carries the full burden and does so well, though it could mention error conditions or permissions.

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?

Three short, front-loaded sentences. Each sentence adds value: main action, return format, and optional feature. No wasted words.

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?

The description is adequate given no output schema: it explains when to use, blocking behavior, parameters, and return format minimally. It could detail the event structure but the provided identifiers are likely sufficient in context of sibling tools.

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 100% with parameter descriptions. The tool description adds meaning by explaining the parameters in context: 'block until' for timeoutMs and 'Nagle-style coalescing' for nagleMs, enriching understanding 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 clearly states the tool blocks until any prompted session produces events and returns events with identifiers. It distinguishes itself from sibling tools like prompt_events by implying it is used after prompting.

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 implies it should be used after prompting sessions ('any prompted session'), providing clear context. It does not explicitly state when not to use or provide alternatives, but the context is sufficient for appropriate selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Oortonaut/mcacp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server