Skip to main content
Glama
antigravity-codex-mcp
by Sunlazys

codex_result

Retrieve the final structured result of a completed, failed, cancelled, or timed-out Codex job, and return ready=false without blocking while it is still active.

Instructions

Retrieve the final structured result of a completed/failed/cancelled/timed_out job. Returns ready=false without blocking if still active.

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": {
      "job_id": "<job_id>"
    },
    "name": "codex_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID to inspect.
include_eventsNoInclude up to 500 buffered progress events (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the non-blocking contract and the ready=false sentinel, which is real behavioral value beyond the schema, but it leaves open what the "structured result" contains for failed/cancelled jobs, whether errors are returned in-band, and result size characteristics.

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 tight sentences with the core purpose first and the non-blocking caveat second. Every clause carries information an agent needs; nothing is padding.

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?

With no output schema, the description does at least characterize the return as a structured result plus a readiness flag. For a two-parameter, non-destructive read, that is nearly sufficient, though the shape of the result for non-success terminal states remains 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 100%, with both job_id and include_events (including its 500-event cap and default) documented in the schema itself. The description adds no meaning beyond that, so the baseline of 3 is warranted.

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?

States a specific verb and resource ("Retrieve the final structured result") and constrains it to four terminal job states (completed/failed/cancelled/timed_out), which implicitly separates it from a polling tool. It never names a sibling such as codex_poll outright, so the differentiation is inferable rather than explicit.

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?

Gives a clear use condition: call this once the job has reached a terminal state. The added note that it returns ready=false without blocking when still active tells the agent what happens if it calls too early, effectively steering it away from using this as a wait loop. No explicit named alternative is provided.

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