Skip to main content
Glama
Ryen-LTC

codex-subagent-for-claude

codex_wait

Read-onlyIdempotent

Block until one or more Codex subagent tasks finish and return their results. Omit task IDs to wait for all running tasks in the current session.

Instructions

阻塞等待一个或多个任务结束并返回它们的结果。不传 ids 就等本会话全部运行中的任务。超时只是返回当前状态,任务不会被杀,可以再次调用继续等。已结束的任务立即返回。等待期间每 10 秒发一次进度通知。只想看一眼不想等,用 codex_status。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsNo任务 id 列表(codex_spawn / codex_review 返回的 8 位 id);省略 = 全部运行中的任务
modeNoall=全部结束才返回(默认),any=任一结束就返回
timeoutNo最长等待秒数,默认 600,上限 3000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.3
    • addedInput schema / properties / ids / description
      Added value: +"任务 id 列表(codex_spawn / codex_review 返回的 8 位 id);省略 = 全部运行中的任务"
    • changedInput schema / properties / mode / description
      Previous value: -"all=全部完成才返回,any=任一完成就返回"New value: +"all=全部结束才返回(默认),any=任一结束就返回"
    • changedInput schema / properties / timeout / description
      Previous value: -"秒,默认 600"New value: +"最长等待秒数,默认 600,上限 3000"
  2. First observedv0.2.1

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses non-obvious behavior: timeout returns current state without killing the task, the call can be re-issued to keep waiting, finished tasks return immediately, and progress notifications fire every 10 seconds. This is rich context the annotations cannot convey.

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?

Dense and front-loaded: core behavior first, then timeout/notification behavior, then the alternative-tool pointer. Every sentence carries distinct information with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description covers what to expect on return (results, current state on timeout, immediate return for finished tasks) plus the rerun and notification behavior. Nothing an agent needs to invoke it correctly is missing.

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 100%, so the baseline is 3. The description adds real meaning on top of the schema by explaining the timeout semantics (returns state, does not kill, re-callable) and the no-ids default, going past raw field documentation.

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 opens with a specific verb and resource: blocking-wait on one or more tasks and returning their results. It also states scope explicitly ('不传 ids 就等本会话全部运行中的任务'), which an agent can use to distinguish it from the other codex_* siblings.

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 gives an explicit alternative and the condition selecting it: '只想看一眼不想等,用 codex_status'. It also clarifies the no-ids default, which effectively tells the agent when this tool is the right choice versus polling status.

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