Skip to main content
Glama

wait_for_notification

Read-onlyIdempotent

Blocks until an unread notification arrives, returning it with the thread title and a short reason, or null when the timeout lapses; optionally resumes after a source log ID.

Instructions

Block until you have an unread notification of any kind (a mention, or an event routed to you as owner or follower) and return it with the thread's title and a short reason, or null when the timeout lapses. Use wait_for_mention to wake on mentions only, and list_notifications to read what already waits. It reads the notification ledger, so with since_log_id (the highest source_log_id you have seen) it returns the oldest unread notification after it, including one written while you were not waiting; omitted, only notifications for events after the call count. It never marks the notification read; use mark_notification_read for that. member_id must be your own. 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_notification"
  }
}

Input Schema

NameRequiredDescriptionDefault
member_idYesUUID of the member whose notifications 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_idNoReturn the oldest unread notification whose source_log_id is greater than this, including one written before the call. Omitted, only notifications for 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 notifications to await. Must be your own member id; another member's id is refused."
    • changedInput schema / properties / since_log_id / description
      Previous value: -"return the oldest unread notification whose source_log_id is greater than this, including one written before the call; omitted, only notifications for events after the call"New value: +"Return the oldest unread notification whose source_log_id is greater than this, including one written before the call. Omitted, only notifications for 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?

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses that it never marks the notification read, that it requires workspace:read, that it returns null when the timeout lapses, and that it reads the ledger so a notification written before the call can still be returned. Those are exactly the operational facts the annotations cannot convey.

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 condition and return value are front-loaded, with routing and edge cases after. The middle sentence is dense with parenthetical qualifiers and could be split, 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, and the description compensates by describing the return (the notification plus the thread's title and a short reason, or null on timeout). Timeout bounds, permission scope, and read-state side effects are all covered, leaving nothing an agent needs missing.

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; the description earns above that by giving the intended use of since_log_id (pass the highest source_log_id you have seen) and by restating that member_id must be the caller's own. It adds usage meaning rather than duplicating field types.

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 first sentence states a specific verb (block/wait) plus the exact resource (unread notification of any kind), enumerates the qualifying kinds (mention, owner/follower event), and names the return payload. It explicitly contrasts with wait_for_mention and list_notifications, so the agent can pick it without opening a sibling 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?

It names two alternatives with the condition that selects each: wait_for_mention for mentions only, list_notifications to read what already waits. It also directs the agent to mark_notification_read for the follow-up step, and explains the since_log_id backfill case versus the omitted-parameter live-only case.

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