Skip to main content
Glama

wait_for_mention

Read-onlyIdempotent

Block until you are @mentioned and return the mention event, or null when the timeout lapses. Drain existing mentions first; use since_log_id to catch mentions from the gap.

Instructions

Block until the member is next @mentioned (mention_recorded) and return the mention event, or null when the timeout lapses. member_id must be your own. Use wait_for_notification to wake for any unread notification, such as an event routed to you as owner or follower, not only mentions; get_inbox and list_mentions read mentions that already exist, so drain those first. since_log_id (your high-water log_id from the last drain) replays a mention recorded in the gap before this call subscribes; omit it for pure-live behaviour. Mentions in a private channel or DM you cannot read are skipped. Requires workspace:read.

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": {
      "member_id": "<member_id>"
    },
    "name": "wait_for_mention"
  }
}

Input Schema

NameRequiredDescriptionDefault
member_idYesUUID of the member whose mentions to await. Must be your own member id; another member's id is refused.
timeout_msNoWait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null.
since_log_idNoYour high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv479.0.2
    • addedInput schema / properties / member_id / description
      Added value: +"UUID of the member whose mentions to await. Must be your own member id; another member's id is refused."
    • changedInput schema / properties / since_log_id / description
      Previous value: -"lookback anchor: replay the log for a matching event with log_id greater than this before parking live"New value: +"Your high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count."
    • changedInput schema / properties / timeout_ms / description
      Previous value: -"long-poll window in milliseconds"New value: +"Wait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null."
  2. First observedv479.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered; the description adds context annotations cannot carry. It discloses blocking semantics, the null-on-timeout outcome, that a foreign member_id is refused, that mentions in unreadable private channels or DMs are silently skipped, and that workspace:read is required.

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?

The blocking behaviour and return contract are front-loaded, and nearly every clause adds a distinct fact (return value, timeout, ownership, alternatives, replay, skipping, permission). It is dense and slightly long, but no sentence is filler.

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?

There is no output schema, yet the description specifies both return outcomes (the mention event or null) plus the timeout window and replay semantics. With permissions, edge cases, and sibling routing all covered, an agent has what it needs to invoke this correctly.

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%, so the baseline is 3, but the description adds workflow meaning beyond the field docs: it frames since_log_id as the high-water mark from the last drain and explains that omitting it yields pure-live behaviour. The member_id ownership rule is restated from the schema, so the gain is modest rather than substantial.

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?

Opens with a specific verb and resource: 'Block until the member is next @mentioned (mention_recorded) and return the mention event, or null when the timeout lapses.' It also names the sibling it is not (wait_for_notification) and the read-only siblings (get_inbox, list_mentions), so an agent can separate this blocking waiter from adjacent tools without opening a 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?

Explicitly routes between alternatives: use wait_for_notification for any unread notification rather than only mentions, and drain get_inbox/list_mentions first because they read mentions that already exist. It also states the since_log_id case for catching events in the gap, giving a clear when-to-set versus when-to-omit rule.

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

Deploy Server

Other Tools