Skip to main content
Glama

codex_wait

Read-only

Waits up to 20 seconds for new events or completion, then returns conversation state. Keep waiting while running/starting; waiting_approval means attention is required.

Instructions

Wait up to 20 seconds for new events or completion, then return conversation state. Continue waiting if status remains running/starting. waiting_approval requires attention.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "conversation_id": "<conversation_id>"
    },
    "name": "codex_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
timeout_msNo
conversation_idYesBridge conversation_id returned by codex_start/resume/list

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly=true, destructive=false, openWorld=true, so the safety profile is covered; the description adds real behavioral detail on top: the blocking wait ceiling, that it returns conversation state rather than events only, and the loop/exit statuses. It does not address throttling behavior or how much event history is returned per call, which are the remaining behavioral gaps.

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 short sentences with zero filler, front-loaded with the wait bound and return value, followed by loop control and the exception status. Every sentence carries actionable information.

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 3-parameter polling tool with no output schema, the description supplies the essentials: the timeout ceiling, what comes back, and the statuses that govern whether to loop again. The main omission is any hint at the shape of the returned 'conversation state', which matters because no output schema exists; the meaning of the `after` cursor is also unaddressed.

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 33%: only conversation_id is documented in the schema. The description corroborates the 20-second cap but says nothing about the `after` cursor, which is the least self-explanatory parameter and is left entirely undocumented. Baseline 3 is appropriate given the schema carries partial weight and the description adds nothing for the two undocumented parameters.

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 description uses a specific verb plus resource ('wait ... for new events or completion, then return conversation state'), and the status semantics (running/starting/waiting_approval) make the long-poll nature distinct from read-style siblings like codex_read. It stops short of explicitly naming a sibling to contrast with, but the operation is unambiguous.

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?

It gives concrete when-to-continue guidance ('Continue waiting if status remains running/starting') and a clear stop condition ('waiting_approval requires attention'), which is exactly the decision an agent needs in a polling loop. It does not name alternatives (e.g., what to call once approval is detected), leaving that routing implicit.

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