Skip to main content
Glama

codex_resume

Continue an existing Codex CLI session with follow-up instructions or fixes while preserving full prior context; specify the session ID or use 'last'.

Instructions

Continue an existing Codex CLI session (codex exec resume) with follow-up instructions or fixes, keeping full prior context.

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": {
      "session_id": "<session_id>",
      "prompt": "<prompt>"
    },
    "name": "codex_resume"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional target working directory override.
groupNoOptional task group name override (inherits original group by default).
modelNoOptional GPT model slug override.
presetNoOptional model + reasoning preset.
promptYesFollow-up prompt or revision instructions.
task_nameNoOptional child task label override.
session_idYesSession UUID returned by codex_run, or "last" for the most recent session.
wait_secondsNoSeconds to wait before returning running status with job_id (0..600).
approval_policyNoApproval policy override for the resumed turn.never
reasoning_effortNoOptional reasoning effort override.
skip_git_repo_checkNoAllow running outside a Git repository.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses one valuable trait — 'keeping full prior context' — but says nothing about how the resumed turn mutates session state, whether it can fail on stale/expired sessions, what it returns, or that long turns may yield a running job status after wait_seconds.

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?

A single sentence that front-loads the action and the target resource, with no filler. The parenthetical CLI reference is compact and useful for agents mapping to the underlying tool.

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 an 11-parameter mutation tool with no annotations and no output schema, the description is adequate on intent but thin on outcome: it does not say what a resume returns (final text, session id, job_id) or that the call may return early as running. The rich schema compensates for the parameters, but behavioral gaps remain.

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 parameter is already documented, including the 'last' sentinel, defaults, ranges, and enum values. The description adds only the context-retention framing and does not clarify override precedence (group/model/preset) beyond what the schema states.

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 ('continue/resume') and resource ('existing Codex CLI session'), plus the underlying CLI invocation, and the phrase 'existing session' inherently distinguishes it from starting a new run. An agent can tell this is the follow-up path rather than a fresh invocation without opening the 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?

Gives clear context for use: follow-up instructions or fixes on a session that already exists, and the schema anchors 'session_id' to 'returned by codex_run'. It stops short of naming an explicit alternative or stating when not to use this (e.g. use codex_run for a fresh task), so it is clear but not fully exclusionary.

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