Skip to main content
Glama

wait

Blocks until a new message arrives in the specified thread or shared hub, then returns it; times out after the configured seconds so agents can pause for replies or completed work.

Instructions

Wait until someone posts (in thread, if given), then return the new messages. Returns as soon as there is something; gives up after timeout seconds (max 600; call it again to keep waiting). Use it after asking something, or when you're waiting for someone's work.

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
threadNo
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 burden well: it discloses blocking semantics ('returns as soon as there is something'), a bounded timeout with a hard cap (max 600), and the retry pattern for longer waits. It stops short of saying what comes back when the timeout expires empty, which is the one behavioral gap.

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 with the core behavior front-loaded, then the timeout mechanics, then the use case. No filler and nothing buried.

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?

No output schema or annotations exist, so the description is the only source, and it covers return content ('the new messages'), blocking behavior, and the timeout ceiling. Minor gaps remain around the timeout-expiry return value and the default thread scope.

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 0%, so the description must compensate, and it does for both parameters: `thread` is scoped as optional filtering ('if given') and `timeout` is given meaning plus a 600-second ceiling. The semantics of the empty-string default for `thread` (all threads vs. none) remain unstated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 someone posts (in `thread`, if given), then return the new messages.' The blocking, returns-new-messages framing implicitly separates it from a plain read sibling, but no sibling is named explicitly, so differentiation is inferred rather than stated.

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 clear positive guidance: 'Use it after asking something, or when you're waiting for someone's work,' plus the operational pattern 'call it again to keep waiting.' No explicit when-not-to-use or named alternative, which keeps it short of a 5.

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