Skip to main content
Glama
TKasperczyk

codex-mcp-swarm

by TKasperczyk

codex

Run a Codex session synchronously with configurable approval policy, sandbox, and optional isolated git worktree for conflict-free parallel execution.

Instructions

Run a Codex session synchronously. Parameters match the official Codex MCP tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesThe initial user prompt for the Codex session.
approval-policyNoApproval policy for shell commands generated by the model.
sandboxNoSandbox mode.
cwdNoWorking directory for the session. If relative, resolved against the server's cwd.
worktreeNoCreate an isolated git worktree and branch for this task. Each task gets its own copy of the repo so parallel tasks never conflict. The response includes the branch name (codex-swarm/<task_id>) -- merge it back when done.
modelNoOptional override for the model name (e.g. 'gpt-5.4').
profileNoConfiguration profile from config.toml.
configNoConfig settings that override server defaults.
base-instructionsNoInstructions to use instead of the defaults.
developer-instructionsNoDeveloper instructions injected as developer role message.
compact-promptNoPrompt used when compacting the conversation.
Behavior2/5

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

With no annotations, the description carries full burden for behavioral disclosure. It only says 'synchronously', omitting details like blocking, duration, side effects (sandbox, worktree creation), or return value. This is insufficient for safe invocation.

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?

The description is a single, front-loaded sentence that efficiently states the core purpose. It is appropriately concise, though could be slightly more specific.

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?

Given 11 parameters, no output schema, and no annotations, the description is too minimal. It fails to explain what a Codex session does, what it returns, or important behaviors (e.g., it may take time, creates worktrees).

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 coverage is 100%, so baseline is 3. The description adds no additional meaning beyond what the schema already provides. The phrase 'Parameters match the official Codex MCP tool' is generic and not helpful.

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?

The description clearly states it runs a Codex session synchronously, which is a specific verb+resource. It implicitly differentiates from siblings like codex_async by mentioning 'synchronously', but does not explicitly name alternatives.

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 description provides no explicit when-to-use guidance. It implies synchronous execution, but does not contrast with async or other management tools. Agents are left to infer usage from the tool name.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TKasperczyk/codex-mcp-swarm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server