Skip to main content
Glama

Dispatch L2 Blocking / Double-Blind Review to Codex

codex_review

Run independent L2 red-line or double-blind reviews of code, documents, and RFCs via Codex CLI, including file-scoped reviews outside git repositories.

Instructions

Run independent L2 red-line review or double-blind code/document/RFC review via Codex CLI (GPT 6.2-sol). Set blind_mode=true for strict double-blind review (pass only objective target/background, never orchestrator findings or bias). Use scope="files" + target_paths to blind-review specific files, docs, or RFCs even outside git repos. Auto-detaches before MCP timeout with wait_cmd.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "codex_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
asyncNoIf true, return immediately with run_id and wait_cmd for reactive wakeup via run_command.
scopeNoDiff or file scope to review (default uncommitted; use files for non-git or doc/RFC reviews).
titleNoShort task title shown in the AI Hub dashboard.
promptNoObjective review scope/background (when blind_mode=true, NEVER include orchestrator findings, suspicions, or draft conclusions).
workdirNoAbsolute working directory path.
high_riskNoSet true for money/auth/external-messaging/core-DB paths to use xhigh reasoning effort.
blind_modeNoTrue to run strict double-blind independent review isolated from orchestrator review.
commit_shaNoCommit SHA when scope=commit.
base_branchNoBase branch name when scope=base.
timeout_secNoTimeout in seconds (default 600).
target_pathsNoOptional list of file or directory paths to review in read-only mode (automatically enables file review mode).
soft_wait_secNoMax seconds to wait synchronously before auto-detaching (default 25, max 120, 0 = immediate async).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose important behavior: it auto-detaches before MCP timeout and returns wait_cmd, and it runs in read-only mode for file targets. It omits failure behavior, auth/model prerequisites beyond the CLI name, and what happens when a review cannot run, which keeps it from a 5.

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?

Three tight sentences lead with the core purpose before detailing modes and detach behavior, with no filler. The density of directives (blind_mode, scope, auto-detach) is high but each sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter tool with no annotations and no output schema, the description covers the main invocation paths, the blind-review constraint, and the async/detach mechanism, which is what an agent most needs. It stops short of describing return values or error surfaces, but with the run_id/wait_cmd mention and rich schema coverage this is largely adequate.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining the reasoning/intent behind blind_mode (pass only objective target/background) and by tying scope="files" to target_paths for non-git reviews. It doesn't add much for high_risk, timeout_sec, or soft_wait_sec beyond what the schema already states.

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 ('Run independent L2 red-line review or double-blind code/document/RFC review via Codex CLI'), making the function concrete. It distinguishes the tool's role (independent/blind review, isolated from orchestrator findings) but does not explicitly differentiate it from sibling backends like codex_exec_backend or codex_plan_backend.

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?

It gives clear operational guidance: set blind_mode=true for strict double-blind review, and use scope="files" with target_paths for files, docs, or RFCs outside git repos. It lacks explicit when-not-to-use conditions or a direct comparison to the Codex sibling tools, leaving some selection ambiguity for an agent choosing between review and exec backends.

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