Skip to main content
Glama
agent-intercom

agent-intercom

by ryul99

Wait for a message

wait

Blocks until a new unread message arrives or the timeout elapses (default 30s, max 600s), letting agents pause mid-task for a reply.

Instructions

Block until a new unread message arrives (polling), or the timeout elapses. Default 30 seconds, maximum 600. Use only when you need to wait for a reply mid-task.

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

Input Schema

NameRequiredDescriptionDefault
withNoOnly return messages from this session id/label/prefix/tool.
timeout_secondsNoMax seconds to wait. Defaults to 30, capped at 600.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 well: it discloses that the call blocks, that it polls, the default (30s) and hard cap (600s), and that it returns when a message arrives or timeout elapses. It omits two meaningful behaviors — what happens on timeout (empty result vs. error) and whether the returned message is marked read — which matters given the existence of a mark_read sibling.

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?

Three short sentences, each earning its place: behavior first, limits second, usage constraint last. No filler and the blocking semantics are front-loaded.

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

Completeness4/5

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

For a two-optional-parameter blocking call with no output schema, the definition covers what to wait for, how long, and when to reach for it. The remaining gap is timeout return behavior, which an agent needs in order to handle the empty case correctly.

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?

The schema has 100% description coverage, so the schema already explains both 'with' and 'timeout_seconds' including bounds and defaults. The description repeats the 30s default and 600s cap without adding meaning, and never explains matching semantics for 'with' (session id/label/prefix/tool), which is where the real ambiguity lies.

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 names a precise verb and resource ('Block until a new unread message arrives') and even discloses the mechanism (polling) plus the failure exit ('or the timeout elapses'). An agent can immediately distinguish this blocking wait from non-blocking siblings like inbox or unread_count.

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?

'Use only when you need to wait for a reply mid-task' gives a clear positive condition and a restrictive 'only' that implies a non-blocking check should be used otherwise. It stops short of naming the alternative tool explicitly, so the agent must infer which sibling to use for a plain check.

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