Skip to main content
Glama

wait_for_reply

Waits for a target agent to finish its current turn by monitoring structured local session logs instead of screen scraping, with timeout and stall-warning detection.

Instructions

Wait for the target agent to finish its current turn by monitoring its structured local session log (no screen scraping).

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

Input Schema

NameRequiredDescriptionDefault
targetYesTarget agent tabId or label.
sessionPathNoOptional explicit session file/directory path override.
timeoutSecondsNoMaximum seconds to wait before returning timeout.
stallWarningSecondsNoReturn early with waiting_for_user if no log activity occurs for this many seconds (0 disables).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the mechanism — it reads a structured local session log rather than screen scraping — which tells the agent it needs no UI focus. However, it omits that the call blocks by default up to 300s, that it can return early with waiting_for_user on a stall, and whether it returns reply content or only a completion signal.

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?

A single front-loaded sentence with the mechanism stated in a tight parenthetical. Nearly nothing is wasted, though the 'no screen scraping' clause is implementation framing rather than decision-relevant detail.

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?

All four parameters are covered by the schema and there is no output schema to explain, but the description never clarifies what the agent gets back — the reply text versus a mere finish/timeout status — nor that the call blocks. For a blocking wait tool with no annotations, that is a meaningful gap.

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 description coverage is 100%, so target, sessionPath, timeoutSeconds, and stallWarningSeconds are already fully documented. The description mentions the session log, loosely motivating sessionPath, but adds no syntax or semantics beyond the schema. Baseline 3 applies.

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?

Names a specific verb ('wait') and a specific resource ('the target agent's current turn'), which is clearly distinct from siblings like send_message or read_history. It does not explicitly contrast itself with polling read_history, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no statement of prerequisites (e.g., 'call after send_message'), and no when-not-to-use or alternative named. Usage must be inferred from the tool name and the mention of a target agent.

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