Skip to main content
Glama

Continue Codex Session

codex_reply
Destructive

Send a follow-up prompt to an existing Codex session to continue work, returning immediately with status so clients can poll progress and handle approvals.

Instructions

Continue existing session. Allowed in idle/error; otherwise SESSION_BUSY. Returns immediately. Use pollInterval as a minimum hint: running >=120000ms, waiting_approval ~=1000ms.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoOverride cwd.
modelNoOverride model.
effortNoOverride effort.
promptYesFollow-up message
sandboxNoOverride sandbox.
summaryNoOverride summary.
sessionIdYesSession ID from codex tool
personalityNoOverride personality.
outputSchemaNoStructured output schema override (top-level in codex_reply).
approvalPolicyNoOverride approval policy.

Output Schema

NameRequiredDescriptionDefault
errorNo
statusNo
isErrorNo
threadIdNo
sessionIdNo
pollIntervalNoRecommended minimum delay before next poll (ms): running >=120000, waiting_approval ~=1000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already declare destructive=true and openWorld=true, but the description adds real behavioral context beyond them: the session state machine, the `SESSION_BUSY` failure mode, and the fact that the reply is asynchronous with a polling minimum. It still never says what a destructive continuation actually does to the session or workspace.

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?

Compact and front-loaded — state gating first, then return behavior, then polling hints — with no filler. The telegraphic backtick shorthand is dense but every clause carries information.

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?

Output schema and full parameter descriptions reduce the burden, and the state/async semantics are covered. For a 10-parameter, nested-object, destructive, open-world tool the description is still thin on what continuation does to the session and what side effects follow, and the `pollInterval` reference is unanchored.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the 10 parameters are already documented and the baseline would be 3. However, the description's only parameter guidance references `pollInterval`, which does not exist in this input schema, risking an agent passing a phantom argument; that is a net negative rather than added meaning.

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?

"Continue existing session" gives a specific verb and resource, so the agent knows this resumes rather than creates a session. It does not explicitly contrast itself with the similarly named `codex_session` or `codex`, so the sibling boundary is left to inference.

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?

Explicit state precondition: allowed in `idle`/`error`, otherwise `SESSION_BUSY`, which tells the agent exactly when the call will succeed. It also explains the async pattern ("Returns immediately") and gives polling cadence hints, but never names `codex_check` as the polling alternative.

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

Deploy Server

Other Tools