Skip to main content
Glama

codex_job_consume_result

Fetch the result of a completed Codex background job and delete its stored record. Use only when you no longer need to poll or re-read the job.

Instructions

Fetch a finished background Codex job's result and delete the stored record.

Same envelope as codex_job_result (matching the job's kind — branch on tool), then removes completed job state. Use only when you no longer need to poll or re-read the job. Non-done jobs are not deleted. detail works as in codex_job_result (#56).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailNoResponse verbosity: 'summary' (default) omits the raw model text; 'full' includes it.summary
job_idYesThe job_id returned by an *_async call (codex_*_async); recover lost ids with codex_job_list.
workspace_rootNoAbsolute path to the target repository root. Pass it (or rely on an MCP root) so the call targets the intended repo; otherwise it falls back to the server's own cwd and meta.workspace_warning is set.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
Behavior1/5

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

Description states that the tool deletes the stored record, but annotations set destructiveHint to false. This is a direct contradiction, making the behavioral information unreliable despite the description being otherwise clear.

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?

Four sentences, efficiently structured: core action first, then envelope reference, usage guidance, deletion condition, and detail clarification. No redundant 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?

With output schema present, return values are covered. Description explains deletion behavior and when it applies. Could mention error handling (e.g., job not found), but overall sufficient for a tool with high schema coverage and output schema.

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 covers all 3 parameters with descriptions. The description adds context by referencing the envelope from codex_job_result and noting detail behavior, but does not significantly enhance parameter understanding 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?

Clearly states that it fetches result and deletes stored record. Distinguishes from sibling codex_job_result by specifying the deletion action and usage after polling is no longer needed.

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?

Explicitly says 'Use only when you no longer need to poll or re-read the job' and clarifies that non-done jobs are not deleted. Also references codex_job_result for envelope structure, guiding agent on when to use this vs. the non-consuming version.

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