Skip to main content
Glama

wait_for_event

Read-only

Wait until something new arrives for you in the Assistant Inbox app on this phone: a message or a task. Returns when a message or task you have not been told about yet is waiting (at once if one already is), and nothing yet after timeout_ms (up to 25000, default 25000) when not. structuredContent.pending lists the new message ids and task ids. When it returns an event, read it with check_inbox or my_tasks, then call wait_for_event again to listen for the next one: items already returned do not wake you again.

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": {
      "session": "<session>"
    },
    "name": "wait_for_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYesSession from open_app
timeout_msNoHow long to wait, in ms (default 25000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint/non-destructive annotations, the description discloses the blocking nature of the call, the 25s timeout ceiling and its default, the exact sentinel return value (`nothing yet`) when nothing arrives, and the shape of the payload (structuredContent.pending with message ids and task ids). The dedupe semantics — returned items never re-trigger the wait — are a non-obvious behavioral trait that the annotations could not 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?

It is a single dense paragraph, but it is front-loaded with the purpose and then the return conditions, and each sentence carries actionable information. The timeout clause is slightly tangled in-line (`nothing yet` after timeout_ms (up to 25000, default 25000)), but nothing is genuinely redundant.

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, so the description carries the burden of explaining returns and it does: the sentinel string, the structuredContent.pending field, and the wake-once semantics. For a two-parameter blocking tool with readOnly annotations, an agent has everything needed to call it correctly and to interpret the result.

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 both parameters are already documented, and the description largely restates the timeout default and maximum rather than adding new meaning. The `session` parameter's dependency on open_app is not elaborated in the description beyond the schema's own note, so it adds only marginal value over the structured field.

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 opens with a specific verb and resource: block until a new message or task appears in the Assistant Inbox app on this phone. It clearly distinguishes the waiting behavior from the sibling tools that actually read the items (check_inbox, my_tasks), so an agent can tell which tool to pick without opening either 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 prescribes a complete loop: wait, then read the event with check_inbox or my_tasks, then call wait_for_event again to listen for the next one. It also states the exclusion explicitly — items already returned do not wake you again — which prevents the obvious misuse of re-polling for the same event.

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.