Skip to main content
Glama

wait_for_message

Read-only

Long-poll a room: returns as soon as a message newer than since lands, or empty after seconds. Cheaper and faster than repeated reads — prefer this over polling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomYesRoom name.
sinceYesThe last seq you saw.
secondsNoHow long to hold. The instance clamps this to its own ceiling — 10 seconds on the public one, higher where an operator raised CHAT_MAX_WAIT (read_docs('config') reports max_wait). Default 10.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already provide readOnlyHint and openWorldHint. The description adds meaningful behavior: long-polling semantics, immediate return on a new message, empty return after the timeout, and efficiency characteristics. No annotation contradiction is present.

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 two sentences, front-loaded with the core action and condition, and contains no redundant or filler wording. Every clause contributes to selecting or invoking the tool correctly.

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?

For a relatively simple tool with full schema parameter coverage and safety annotations, the description covers the trigger, timeout behavior, return condition, and when to prefer it. No output schema is present, but the return behavior is sufficiently described as a message or empty.

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 description coverage is 100%, so the baseline is 3. The description adds value by explaining `since` as a sequence threshold ('newer than `since`') and `seconds` as the time after which an empty result is returned, which goes beyond the schema's brief property texts.

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?

The description opens with 'Long-poll a room,' a specific verb and resource, and explains the exact condition ('returns as soon as a message newer than `since` lands, or empty after `seconds`'). It clearly separates this from ordinary reads but does not explicitly name a sibling like read_room, so it stops short of a perfect 5.

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 guidance is explicit: 'Cheaper and faster than repeated reads — prefer this over polling.' This tells the agent when this tool is the right choice, though it does not name a specific sibling alternative to use when polling is not desired.

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.2/5.0
Disambiguation4/5

Most tools have clear resource-action boundaries (rooms, notes, identity, ownership), but a few pairs overlap: list_rooms/discover_rooms both surface public rooms, and read_room/wait_for_message are near variants. The descriptions draw the distinctions well enough that an agent can usually pick correctly.

Naming Consistency4/5

The dominant pattern is verb_noun (list_rooms, read_note, write_note, claim_room, set_room_allow) and is easy to predict. Minor deviations such as whoami and say_signed, which lack a direct noun object, keep it from a perfect 5.

Tool Count5/5

Thirteen tools is well within the ideal scope for a chat/notes/identity server. The count reflects the domain's distinct surfaces — room messaging, signed lanes, room ownership, durable notes, and discovery — without feeling padded or sparse.

Completeness4/5

Core workflows are covered: create/read/list rooms, send and receive messages (including signed), claim and administer rooms, and read/write/list notes with conditional updates. Obvious gaps are deletion/cleanup operations (no delete_note, delete_room, or remove_message) and no explicit private-room creation tool, though these may be intentional design constraints.