Skip to main content
Glama

inbox_wait

Waits until a new unread message arrives for the current session, with optional sender or thread filters, and returns on arrival or timeout.

Instructions

Wait until a new unread message arrives for this session (polls SQLite every 200ms up to timeout_seconds). For idle-session auto-wakeup without blocking a turn, run x-harness watch --name <handle> as a background shell task instead.

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

Input Schema

NameRequiredDescriptionDefault
fromNoOptional sender handle to wait on.
thread_idNoOptional thread ID to wait on.
timeout_secondsNoMax seconds to wait (default 30, max 110).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: it blocks, it polls SQLite every 200ms, and it caps at timeout_seconds. It omits what happens when the timeout elapses (empty return vs. error vs. partial result), which is the key unknown for a blocking call.

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?

Two sentences, both front-loaded: the blocking behavior and polling cadence come first, then the non-blocking escape hatch. Nothing redundant given the schema already documents the parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a blocking wait with no output schema and no annotations, the definition should say what a caller receives on message arrival versus timeout, since no structured field conveys that. Everything else an agent needs to invoke it is present.

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 from/thread_id/timeout_seconds are already documented, and the default-30/max-110 detail in the description duplicates the schema. The description adds no semantics beyond asserting the params scope the wait to a sender or thread.

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 until a new unread message arrives') plus the scope it applies to ('for this session'), which is enough for an agent to tell it apart from quick-poll siblings like inbox_check.

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?

Gives an explicit exclusion case - idle-session auto-wakeup should use `x-harness watch --name <handle>` as a background shell task instead of blocking a turn. It does not name any sibling tool such as inbox_check as the non-blocking alternative, so routing among MCP tools is left partly to inference.

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