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

codex_resume

Resume an existing Codex session by exact session ID, prior MCP job ID, or latest indexed session; continue with a follow-up prompt while locking session identity.

Instructions

Resume an existing Codex session by exact session_id, previous MCP job_id, or use_last=true (mutually exclusive). Locks session identity strictly.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory (defaults to the session's recorded cwd).
modelNo
imagesNo
job_idNoPrevious MCP job_id whose session to resume.
promptYesFollow-up prompt sent via stdin.
profileNoOptional Codex config profile (-p).
sandboxNo
use_lastNoDeterministically pick the latest indexed session (filtered by cwd if given).
session_idNoExact Codex session UUID to resume.
wait_secondsNo
output_schemaNo
allow_unindexedNoAllow passing a valid UUID not found in local index.
max_duration_secNo
reasoning_effortNoOptional Codex reasoning effort override (-c model_reasoning_effort=..., e.g. low, medium, high, xhigh).
skip_git_repo_checkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden for a 15-parameter tool that presumably launches a Codex job. It never says whether the call blocks or returns a job handle, how wait_seconds/max_duration_sec/poll interact, what sandbox escalation implies, or what happens to the existing session state. 'Locks session identity strictly' gestures at a constraint but does not explain its consequences.

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?

Two tight sentences with the selection mechanism front-loaded and no filler. The trailing phrase 'Locks session identity strictly' is vague enough to be borderline waste, but the overall size is well matched to the tool's core decision.

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

Completeness2/5

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

For a high-complexity tool with 15 parameters, no annotations, no output schema, and nested output_schema input, the description is far too thin. An agent still cannot tell how to sequence resume with codex_poll/codex_result or what the resumed session returns.

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?

With 53% schema coverage across 15 parameters, the description must compensate. It does add genuinely new meaning by declaring the session_id/job_id/use_last trio mutually exclusive, which the schema does not state, but it says nothing about the other twelve parameters (sandbox, wait_seconds, output_schema, max_duration_sec, allow_unindexed) that are ambiguous without annotations.

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+resource ('Resume an existing Codex session') and enumerates the three exact selection mechanisms (session_id, job_id, use_last=true), which is enough to separate it from codex_run or codex_fork on behavior grounds.

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?

The 'mutually exclusive' clause tells the agent to pick exactly one selector, which is real routing guidance. However, there is no explicit when-not guidance (e.g., start a new session with codex_run, branch with codex_fork), so tool-level alternatives must be inferred.

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