Skip to main content
Glama

Fetch job result (free)

codex_job_result
Read-only

Retrieve a finished background Codex job's result without deleting its record. Use it for async delegate, consult, or review jobs to get the output or verdict.

Instructions

Fetch a finished background Codex job's result WITHOUT deleting the record.

Works for any async job or sync consult/review/delegate (whose meta.job_id names its record) — codex_delegate_async (a diff), codex_consult_async (a consult answer), or codex_review_changes_async (a review with verdict). Use when codex_job_status reports result_available=true; the envelope matches the job's kind, so branch on tool. meta.job_id is set. A still-running/cancelled/timed- out/failed job returns an error envelope — as does a done job whose stored result this release cannot read (job_result_incompatible). To fetch and delete, use codex_job_consume_result. Free — no model call.

detail="summary" (default) omits the raw model text; pass detail="full" for the complete raw output and metadata (#56).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailNoResponse verbosity: 'summary' (default) omits the raw model text; 'full' includes it.summary
job_idYesThe job_id from an *_async call or a sync call's meta.job_id; recover lost ids with codex_job_list.
workspace_rootNoAbsolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYestrue = success result, false = error result
Behavior5/5

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

Annotations already mark the tool readOnlyHint=true and openWorldHint=false, and the description reinforces this with 'WITHOUT deleting the record.' It adds substantial behavioral context beyond annotations: error envelopes for various job states, the job_result_incompatible limitation, the envelope shape matching the job kind, and the 'free' nature with no model call. No contradiction present.

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?

The description is front-loaded with the core purpose and then organized into applicability, usage, error behavior, alternatives, cost, and parameter notes. While longer than a trivial tool's description, every sentence carries operational value; a small amount of repetition (e.g., meta.job_id mentioned twice) keeps it from a perfect score.

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?

Given the tool's moderate complexity and the presence of an output schema, the description is fully complete. It covers prerequisites, error scenarios, the relationship to sibling tools, the optional detail parameter, and cost implications, giving an agent everything needed to invoke the tool correctly without needing to infer behavior.

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%, so baseline is 3. The description mostly restates schema-provided parameter details (e.g., detail='summary' vs 'full') and adds no genuinely new parameter semantics. It mentions meta.job_id is set, which relates to input provenance but not a distinct parameter detail, so it does not raise the score above baseline.

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 'Fetch a finished background Codex job's result WITHOUT deleting the record,' which states a specific verb, resource, and key qualifier (non-destructive). This clearly distinguishes it from codex_job_consume_result, and the subsequent enumeration of supported job types removes ambiguity about scope.

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?

The description explicitly says 'Use when codex_job_status reports result_available=true' and identifies codex_job_consume_result as the alternative when deletion is desired. It also names sibling tools and clarifies when this tool should not be used (e.g., errors for still-running/cancelled/timed-out/failed jobs), providing strong decision guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/briandconnelly/codex-in-claude'

If you have feedback or need assistance with the MCP directory API, please join our Discord server