Skip to main content
Glama
codex-mcp-tool

codex-mcp-tool

do-act

Destructive

Executes a Codex task, validates results with a shell command, and automatically retries fixes when verification fails.

Instructions

Execute task via Codex, verify with shell command, auto-fix on failure. Act-Check-Fix loop.

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": {
      "task": "<task>"
    },
    "name": "do-act"
  }
}

Input Schema

NameRequiredDescriptionDefault
ossNoUse local Ollama/LM Studio
taskYesTask for Codex to execute
modelNoOptional model override. Known: gpt-6.1-sol, gpt-6-astra, gpt-6.1-terra, gpt-6-sol, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna. If omitted, uses your Codex CLI default (~/.codex/config.toml).
verifyNoShell command to validate result. Triggers act-check-fix loop on failure.
timeoutNoCodex timeout per attempt in ms. Default: 10min
fullAutoNoCompatibility alias for workspace-write with approval=never
maxRetriesNoMax retry attempts if verify fails. Default: 2
workingDirNoWorking directory
sandboxModeNoAccess: read-only, workspace-write, danger-full-access
localProviderNo
reasoningEffortNoReasoning depth. Default: high (act-check-fix loops benefit from depth so retries converge). Override with "xhigh" for hard tasks, "medium" for simple verifiable steps.high

Output Schema

NameRequiredDescriptionDefault
stepsYes
statusYes
attemptsYes
durationMsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.7.0
    • changedInput schema / properties / model / description
      Previous value: -"Optional model override. Known: gpt-5.6, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4, gpt-5.4-mini. If omitted, uses your Codex CLI default (~/.codex/config.toml)."New value: +"Optional model override. Known: gpt-6.1-sol, gpt-6-astra, gpt-6.1-terra, gpt-6-sol, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna. If omitted, uses your Codex CLI default (~/.codex/config.toml)."
    • addedInput schema / properties / timeout / exclusiveMinimum
      Added value: +0
    • changedInput schema / properties / timeout / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / verify / properties / timeout / exclusiveMinimum
      Added value: +0
    • changedInput schema / properties / verify / properties / timeout / type
      Previous value: -"number"New value: +"integer"
  2. First observedv2.4.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known. The description adds real value beyond that by disclosing the act-check-fix loop and auto-fix-on-failure behavior, which is not in the annotations. However, it does not explain what 'auto-fix' actually does (re-prompt Codex? re-run with a diff?), nor that retries are bounded by maxRetries, so the loop's mechanics remain partly opaque for a destructive tool.

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 short, front-loaded sentences with no filler; the core action comes first and the loop pattern is summarized at the end. The trailing 'Act-Check-Fix loop' sentence is slightly redundant with the first sentence, which keeps it from a 5.

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?

The tool has 11 parameters, a nested verify object, three enums, and an output schema, so the schema and annotations carry much of the burden. Still, a destructive, open-world executor that runs arbitrary shell commands deserves more than two sentences: the description says nothing about sandbox implications, what happens to the workspace on a failed loop, or how this differs from its Codex siblings.

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 91%, so the schema already documents the parameters, including the verify sub-object, sandboxMode enum, and reasoningEffort default. The description adds no parameter-level meaning beyond what is already structured. Baseline 3 applies when the schema does the heavy lifting.

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 mechanism: execute a task via Codex, verify with a shell command, and auto-fix on failure. That is far more informative than the opaque name 'do-act'. It stops short of naming a sibling (ask-codex, batch-codex) to contrast with, so an agent cannot tell from the description alone why it should pick this over ask-codex.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no mention of the obvious alternatives ask-codex and batch-codex. The only implicit signal is the act-check-fix framing, which suggests it is for tasks that can be validated by a shell command, but the agent must infer that.

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