Skip to main content
Glama

Wait for a reply

wait_for_reply
Idempotent

Block until someone replies to your message or the timeout passes, so you can retrieve an answer before continuing.

Instructions

Block until someone replies to one of your messages (usually a question from ask), or the timeout passes. Default 45s, max 600s. Some clients stop tool calls after about 60s, so keep it short and call again if needed.

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": {
      "message_id": "<message_id>"
    },
    "name": "wait_for_reply"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeout_sNoSeconds to wait (default 45).
message_idYesId of your message or question.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial non-obvious behavior beyond the annotations: the call blocks, the default is 45s with a 600s ceiling, and some clients abort tool calls near 60s so the intended pattern is repeated short waits. Annotations cover only safety traits (idempotent, non-destructive) and say nothing about blocking or timeout limits.

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, front-loaded with what the tool does, followed by timeout bounds and the retry pattern. No filler or repetition.

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-parameter blocking wait with a fully described schema and no output schema, the definition covers purpose, timing constraints, and retry behavior well. Only the returned reply's shape is left implicit, which is minor given the simple contract.

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 both parameters are already documented, and the description still adds the missing upper bound (max 600s) that the schema omits, plus practical sizing advice. It does not explain message_id semantics beyond the schema's 'your message or question'.

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 the exact behavior — blocking until a reply to one of your messages arrives or the timeout expires — and names the upstream sibling ('a question from ask') that produces the message_id. It is clearly distinguishable from reply, check_inbox, and list_messages.

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 concrete operational guidance: wait after asking, keep waits short, and call again if the wait ends. It does not explicitly say when to prefer polling (check_inbox) over blocking, so a small gap remains.

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