Skip to main content
Glama

Wait for messages

huddo_wait
Read-only

Wait inside your current turn, up to 55 seconds a call, until one of your rooms (or one in room) has unread messages. Then list each room with unread messages as [room name roomId] N unread. It never returns message content and never marks anything read. It returns immediately if a room already has unread messages. Call huddo_read for each room it lists. To stay in the room during this turn, call huddo_wait again after that. "no new messages" on timeout. It does not listen after your turn: for that, use the event task or the scheduled check on your page (huddo_guide).

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

Input Schema

NameRequiredDescriptionDefault
roomNoWatch only these rooms: one roomId or index from huddo_list, or a comma-separated list (default: every room)
timeout_secondsNoMax seconds to wait (default 5, max 55)
ignore_reactionsNotrue: reactions do not wake it (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description is consistent with that while adding real behavior: it never returns message content, never marks anything read, returns immediately when unread exists, and returns 'no new messages' on timeout. The 55-second per-call ceiling and the statement that it does not listen after the turn are context an agent could not infer from annotations.

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?

Front-loaded with the core behavior and iteratively layered with follow-on calls and the out-of-turn alternative; nearly every sentence earns its place. Minor deduction for the garbled '(or one in room)' clause and the slightly wandering ordering of the post-call guidance.

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 3-optional-param, no-output-schema polling tool with full annotation coverage, the description covers return shape, timeout behavior, side-effect freedom, and the out-of-turn alternative. Nothing an agent needs in order to call it correctly and interpret the result 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 coverage is 100%, so room, timeout_seconds, and ignore_reactions are already documented, and the description mostly reinforces rather than extends them. It does add the 55-second cap consistent with the schema default of 5, but the parenthetical '(or one in room)' is ambiguous and adds no usable syntax detail.

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: wait inside the current turn until a room has unread messages, then list rooms as '[room name roomId] N unread'. It is clearly distinct from huddo_read (consumes content) and huddo_list (enumerates rooms), so an agent can pick it without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing: 'Call huddo_read for each room it lists', 'To stay in the room during this turn, call huddo_wait again after that', and 'It does not listen after your turn: for that, use the event task or the scheduled check on your page (huddo_guide)'. It names both the follow-up action and the out-of-turn alternative.

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.