Skip to main content
Glama

droid_wait

Waits for one or more delegated runs, unanswered questions, or supervision decisions to finish; returns decision-ready status or progress and can be called again after a timeout.

Instructions

一次等待单个或多个运行的结束、待答问题或监督决定。Codex 省略 timeout_s 可等至 3540 秒;普通巡检留在本地。默认返回 decision。等待超时或取消仅结束等待。保留仍在执行的 ID 再等;已收到的终态从 run_ids 移除。

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

Input Schema

NameRequiredDescriptionDefault
detailNodecision=决定所需的信息;summary=进度和近期事件;full=完整状态。
run_idNo运行 ID。
run_idsNo
since_seqNo仅用于 summary,返回 seq 大于此值的近期事件。
timeout_sNo单次等待上限,秒。Codex 默认 3540,其他客户端默认 50。
session_idNo会话 ID。
after_attentionNo可选,每个 run_id 已收到的 attention.id 或 pending.request_id;该等待只返回新通知。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.9/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 substantial work: "等待超时或取消仅结束等待" clarifies that timeout/cancel does not cancel the underlying runs, "默认返回 decision" states the default return behavior, and the timeout behavior for Codex is disclosed. Remaining gap is any note on rate limits or concurrency, but the mutation-safety profile is well covered.

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?

Purpose is front-loaded, followed by timeout defaults, return behavior, and the re-wait loop, with no filler sentences. Some phrasing ("普通巡检留在本地") is terse and slightly opaque, keeping it from a 5.

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 7-parameter tool with nested objects, no annotations, and no output schema, the coverage of use cases, timeout, and iteration is adequate. However, it does not describe the returned payload shape at all beyond "默认返回 decision," and the ambiguous local-inspection phrase leaves the agent to infer when not to call it.

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 already high at 86%, but the description still adds meaning: it explains that omitting timeout_s yields the Codex default of 3540s and ties run_ids handling to the terminal/pending distinction. This goes beyond the raw schema text for timeout_s and run_ids.

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?

The first clause gives a specific verb and resource set: "一次等待单个或多个运行的结束、待答问题或监督决定" (wait once for run completion, pending questions, or supervision decisions). This is clear and distinguishable from inspection-oriented siblings, though it never names an alternative explicitly.

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?

"普通巡检留在本地" signals that routine polling should not use this tool, and "保留仍在执行的 ID 再等;已收到的终态从 run_ids 移除" gives an explicit re-wait iteration pattern. It stops short of naming droid_status or droid_supervise as the alternatives, leaving the routing partly to inference.

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