Skip to main content
Glama

codex_resume

Resume a prior task or session with concrete review feedback and rework instructions while preserving session memory, and run the next round asynchronously without polling.

Instructions

Resume an existing Codex task/session with concrete review feedback or rework instructions while preserving Codex's prior session memory. Model and reasoning effort inherit independently from the previous round when known, unless explicitly overridden. Applies the configured Codex Castor permission policy (full access by default). Runs asynchronously as a background tool; do NOT poll after calling.

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_resume"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOverride the Codex model for this round. Omit to inherit the previous round's recorded model when available, or use the CLI default otherwise.
task_idNoTask ID returned by an earlier codex_dispatch call (automatically resolves session_id and workdir).
workdirNoWorking directory (only needed if task_id is omitted).
feedbackNoConcrete review feedback, failing test output, and exact fixes required. Provide either feedback or feedback_file.
fast_modeNoOptional override to enable or disable Codex Fast mode (service_tier='fast') for this round. Omit to use the Codex Castor Fast mode setting.
session_idNoExplicit Codex session UUID (only needed if task_id is omitted).
feedback_fileNoPath to a Markdown feedback file. Provide either feedback or feedback_file.
permission_modeNoOptional override for Codex permission/approval policy for this round ('full_access', 'approve_for_me', 'workspace_write', 'read_only'). Omit to use the Codex Castor permission setting.
reasoning_effortNoOverride the Codex reasoning effort for this round. Omit to inherit the previous round's recorded effort when available, or use the CLI default otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does a good job: model and reasoning effort inheritance behavior, the applied permission policy ("full access by default"), and the asynchronous background execution model are all stated. The notable gap is the return contract — nothing says what the call returns (presumably a task id) or how results are later retrieved, which matters for a fire-and-forget tool.

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, each carrying distinct information (purpose, inheritance rules, permission policy, async execution), with the purpose front-loaded. No filler and nothing repeated from the schema's own parameter text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter asynchronous mutation tool with no annotations and no output schema, the definition covers inheritance and permission behavior well but leaves the post-call lifecycle underspecified: it says not to poll yet does not name codex_monitor or codex_status as the way results arrive, and never states what the call returns. An agent could call it correctly but would be unsure how to close the loop.

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 every one of the nine parameters is already documented, including the omit-to-inherit semantics for model and reasoning_effort. The description restates the inheritance behavior at a higher level but adds no syntax, format, or precedence detail beyond the schema — baseline 3.

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 ("Resume an existing Codex task/session") plus the payload it carries (review feedback or rework instructions) and the key benefit (preserves prior session memory). That is a fairly sharp differentiator from codex_dispatch, but it never names codex_feedback, so the boundary between "resume" and the sibling feedback tool is left for the agent to infer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Strong operational guidance: "Runs asynchronously as a background tool; do NOT poll after calling" tells the agent what not to do after invocation. However, there is no explicit when-to-use-this-vs-codex_feedback or vs-codex_dispatch guidance, and no statement of prerequisites beyond task_id coming from an earlier codex_dispatch call (which appears only in the schema).

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