Skip to main content
Glama

agy_wait

Wait for workers to finish or need attention, returning each report once. Set timeout_seconds to 0 for a snapshot.

Instructions

Block until workers finish or need attention; returns each report once. timeout_seconds=0 = snapshot.

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

Input Schema

NameRequiredDescriptionDefault
wait_forNo
agent_idsNoDefault: active + unreported.
timeout_secondsNo0-300, default 120.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/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, and it does disclose the two most important non-obvious traits: the call blocks, and each report is delivered only once (a consumption/idempotency signal). It omits timeout behavior (empty result vs. error), whether waiting consumes reports such that a later agy_result call would miss them, and what "need attention" means as a terminal condition.

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?

Two short clauses, front-loaded with the core blocking behavior, and the snapshot note appended where it is most needed. Every fragment carries information, but the telegraphic semicolon style costs some readability for an agent parsing the contract.

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?

For a concurrency primitive with no output schema and no annotations, the definition should state what comes back on timeout and what a report looks like; "returns each report once" gestures at this but doesn't close it. The core contract is understandable, yet an agent can't fully predict behavior at the timeout boundary.

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 description usefully supplies the meaning of timeout_seconds=0, which the schema field ("0-300, default 120") does not cover. It says nothing about wait_for's "any" vs "all" enum, which is the parameter most likely to be misused, and adds nothing to agent_ids beyond the schema's "Default: active + unreported." At 67% coverage, the remaining gap in wait_for is a real omission.

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?

A specific verb plus resource ("Block until workers finish or need attention") plus a delivery guarantee ("returns each report once") tells the agent this is a wait/collect primitive rather than a listing or cleanup tool. It stops short of naming agy_result or agy_list as the non-blocking alternatives, so sibling differentiation is only implicit.

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 blocking condition is stated and "timeout_seconds=0 = snapshot" implies a non-blocking usage mode, which is real guidance. However, it never states when to prefer agy_result or agy_list instead, nor what to do if the wait times out with no reports, leaving the agent to infer the switching rule.

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