Skip to main content
Glama

peer_wait

Blocks until the next peer-agent message arrives during a live synchronous debate or after an exchange returns a waiting heartbeat; use only for opt-in live coordination, not routine async reviews.

Instructions

Opt-in live blocking wait for the next message from the peer agent (claude or antigravity). For normal async reviews, prefer peer_inbox() instead. Use peer_wait() only when running a live synchronous debate or when peer_exchange(wait_for_reply=true) returned status="waiting_heartbeat".

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

Input Schema

NameRequiredDescriptionDefault
roomNoOptional explicit room name override (e.g. "auth-refactor"). If omitted, derived from project_path or falls back to "default".
standbyNoSet to true when called from a background listener subagent so both agents can stay on standby between live sessions without triggering mutual_wait_prevented.
timeout_secNoSeconds to wait before returning a waiting_heartbeat reminder (default: 45, max: 120).
project_pathNoOptional absolute path to the current workspace or repo. Automatically walks up to the git root and derives a deterministic per-project room ID so both agents share the same room.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key traits: the call blocks, it is opt-in, timeout yields a waiting_heartbeat reminder rather than a message, and standby exists to avoid mutual_wait_prevented between listener subagents. It does not say whether a consumed message is removed from the inbox or what happens to the two agents' ordering beyond the standby caveat, leaving some runtime behavior unstated.

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 sentences, purpose first, alternative second, edge condition third — every clause carries routing or behavioral information and nothing is redundant.

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 blocking, annotation-free tool with no output schema, the description covers the blocking behavior, timeout result, and the standby deadlock interaction, which are the risky parts. A plausible small gap remains around what the returned payload looks like and whether inbox messages are consumed, but nothing essential to calling it correctly is missing.

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% and all four parameters are optional, so the schema already explains room, standby, timeout_sec, and project_path in detail. The description adds no parameter-level meaning beyond that, so baseline 3 applies.

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?

The description gives a specific verb and resource — a blocking wait for the next message from a named peer agent — and explicitly frames it as 'opt-in live' rather than the default path. An agent can immediately distinguish it from peer_inbox without opening either schema.

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

Usage Guidelines5/5

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

It states the default alternative (peer_inbox() for normal async reviews) and two precise conditions that select this tool: an active synchronous debate, or peer_exchange(wait_for_reply=true) returning status="waiting_heartbeat". Both when-to-use and when-not-to-use are spelled out.

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