Skip to main content
Glama

codex_batch_exec

Run up to six independent Codex work orders in parallel on isolated cache lanes, enforcing disjoint write paths and guardrails, then return consolidated reports.

Instructions

Execute up to 6 independent Codex work orders in parallel on separate cache lanes. Enforces strictly disjoint allowed_paths for write tasks sharing a workspace, isolates concurrent sibling edits in Git, runs all runtime guardrails on each worker, and returns consolidated ground-truth reports.

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": {
      "tasks": "<tasks>"
    },
    "name": "codex_batch_exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoDefault workspace directory for tasks that omit cwd.
tasksYes
profileNomax
sandboxNoworkspace-write
timeout_secNo
session_modeNoauto
strict_guardNo
max_concurrencyNoMaximum concurrent Codex workers (1-4, default 3).
reasoning_effortNo
auto_revert_violationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It does add genuine behavioral context beyond the schema: parallel lane execution, Git isolation of concurrent sibling edits, per-worker guardrails, and consolidated ground-truth reports. It omits critical operational behavior for a write-capable tool — what happens when allowed_paths overlap, whether violations are reverted, partial-failure semantics across the six workers, and cost/concurrency side effects.

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?

A single dense sentence that front-loads the core action and cardinality before the enforcement and return-value clauses. No filler or restatement of the title, though the string of four enforcement clauses in one sentence is harder to parse than a short structured list would be.

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?

This is a high-complexity, mutation-capable batch tool with 10 parameters, no annotations, and no output schema, so the description must do heavy lifting. It covers the headline behavior and the disjoint-path rule but leaves most parameter semantics and all failure/rollback behavior undocumented, which is not sufficient for an agent to call it confidently in edge cases.

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 only 20%, so the description needs to compensate, and it partially does: 'up to 6' maps to maxItems, 'separate cache lanes' to lane, and 'strictly disjoint allowed_paths for write tasks sharing a workspace' explains the allowed_paths/cwd interaction. But the majority of the 10 parameters (profile, sandbox, session_mode, strict_guard, max_concurrency, reasoning_effort, auto_revert_violations, timeout_sec) receive no explanation of defaults or effect.

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 opens with a specific verb and resource ('Execute up to 6 independent Codex work orders in parallel on separate cache lanes'), which clearly frames this as the batch/parallel counterpart to a single-task executor. The cardinality limit and 'independent' qualifier let an agent distinguish it from siblings like codex_exec without opening the schema, though no sibling is named explicitly.

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 word 'independent' implies the intended use case (tasks that do not depend on each other), and 'separate cache lanes' hints at isolation. However, there is no explicit when-to-use/when-not-to-use guidance, no statement that dependent tasks should be sequenced via another tool, and no mention of what to do when disjoint allowed_paths cannot be established.

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