Skip to main content
Glama
yuriisamohvalov-creator

codex-cli-sync-mcp

codex_execute

Execute a single bounded coding task via Codex CLI and get a compact JSON report with diff, status, exit code, and thread ID.

Instructions

Execute one bounded coding task through Codex CLI (synchronous, blocks until done) and return a compact JSON report with diff/status context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYesAbsolute working directory/repository root.
taskYesBounded coding task with goal, constraints, files, acceptance criteria, and verification command.
modelNoOptional Codex model override, e.g. gpt-5.1-codex.
timeoutMsNoInternal timeout; must be below the MCP client's own per-call timeout.
resumeThreadIdNoResume a specific Codex thread id instead of starting a new one.
dangerouslyBypassSandboxNoUse --dangerously-bypass-approvals-and-sandbox instead of --approve-for-me. Only for environments that are already externally sandboxed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

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

The description discloses key behavioral traits: synchronous execution, blocking, and the return of a compact JSON report with diff/status. However, with no annotations present, it does not explicitly mention side effects (e.g., file modifications), permission requirements, failure modes, or sandbox behavior, leaving these to be inferred from the 'coding task' framing and parameter names.

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?

The entire description is a single sentence that front-loads the action and resource, then adds the critical operational detail (synchronous, blocking) and the return type. There is no redundant wording or filler.

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 tool with 6 parameters, no output schema, and no annotations, the description covers the core operation, return format, and blocking behavior. However, it leaves side effects, error handling, and security implications unstated—important for an execution tool—and relies on the `dangerouslyBypassSandbox` parameter to hint at sandboxing. Some gaps remain for high-risk use.

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?

The input schema has 100% description coverage, so all six parameters are already fully documented. The tool description adds no parameter-specific semantics beyond what the schema provides; the phrase 'bounded coding task' mirrors the `task` parameter's own description rather than adding new meaning.

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?

The description states a specific verb ('Execute'), a resource ('bounded coding task through Codex CLI'), and the result format ('compact JSON report with diff/status context'). It also clarifies the synchronous blocking behavior, making the tool's purpose unambiguous even without sibling tools to compare against.

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?

The description gives clear context by specifying this is for 'bounded' coding tasks and that it blocks until done. There are no sibling tools to differentiate against, so explicit alternatives or when-not guidance are unnecessary; the 'bounded' qualifier implies the intended scope.

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