Skip to main content
Glama

codex_status

Check the status, live progress, session ID, or final output of a background Codex job started with codex_start, optionally waiting for completion; lists persisted jobs too.

Instructions

Check status, live progress events, session_id, or final output of a background Codex job started with codex_start (also inspects jobs persisted across restarts). Optionally waits up to wait_seconds.

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

Input Schema

NameRequiredDescriptionDefault
job_idNoThe job_id returned by codex_start. Omit to list all tracked jobs.
wait_secondsNoOptional long-poll wait time in seconds (0-120) to wait for the job to finish before returning.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/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: it discloses what is returned (status, live progress events, session_id, final output), that jobs survive restarts, and that the call can long-poll up to wait_seconds. It stops short of saying the call is non-mutating and does not describe how partial/in-progress results differ from final output.

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?

Two sentences, front-loaded with the resource and its returned data, followed by the optional wait qualifier. No filler and nothing buried.

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 simple two-parameter read tool with full schema coverage and no output schema, the description supplies the key return-shape hints and the restart-persistence detail an agent needs. Minor gap: it does not explain what a timed-out long poll returns versus a finished job.

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 coverage is 100%, so both job_id and wait_seconds are already documented in the schema, including the 0-120 range and the omit-to-list behavior. The description only restates the optional wait, adding no syntax or semantic detail beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb and resource - check status/progress/output of a background Codex job - and anchors it to the sibling that creates that job (codex_start). It also enumerates the concrete payload (status, live progress events, session_id, final output), so an agent can distinguish it from lifecycle tools like codex_cancel or codex_resume without opening a schema.

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?

The phrase 'started with codex_start' establishes the precondition for calling it, and 'omit to list all tracked jobs' (in the schema) plus 'also inspects jobs persisted across restarts' implies the polling-after-restart scenario. It does not state explicit when-not conditions or name an alternative for retrieving logs/output.

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