Skip to main content
Glama

Wait for agent

herdr_agent_wait
Read-onlyIdempotent

Blocks until the specified coding agent reaches a target status, or a settled one by default, returning at once if it already matches.

Instructions

Wait until an agent reaches a status. Without 'until', waits for idle, done, or blocked. Returns immediately if the agent already matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYesAgent name (e.g. 'reviewer') or the pane ID hosting the agent (e.g. 'w1:p1').
untilNoStatus to wait for. Omit to wait for any settled status (idle, done, or blocked).
timeout_msNoTimeout in milliseconds (max 300000). Default: 120000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already mark this readOnly, idempotent, and non-open-world, so safety is covered. The description adds real behavioral value beyond that: the default settled-status set (idle/done/blocked) and the immediate-return short-circuit when the agent already matches. It omits what happens on timeout or how the wait terminates, which keeps it from a 5.

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?

Three compact sentences, front-loaded with the core action, and no filler. The second sentence partially duplicates the schema's 'until' description, which is the only wasted effort.

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?

No output schema exists, so the description ideally would say what a wait returns (final status? timeout signal?) and whether a timeout is an error or a normal result. For a blocking tool with a bounded timeout, that gap matters, though the annotations and full schema coverage keep this adequate.

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 the schema already documents the agent identifier, the 'until' enum, and the timeout default/max. The description's note about omitting 'until' restates the schema's own 'Omit to wait for any settled status' text, adding no new syntax or format detail. 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?

States a specific verb and resource: waiting for an agent to reach a status, which cleanly separates it from read-style siblings like herdr_agent_get and herdr_agent_list. The distinction from those siblings is semantic rather than explicit, so it falls just 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 Guidelines3/5

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

The description implies when to reach for this tool via its blocking nature, and explains the default behavior when 'until' is omitted. However, it never explicitly says to use this over herdr_agent_get for polling, nor states any preconditions (e.g., the agent must exist).

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