Skip to main content
Glama

codex_review

Run non-interactive code reviews on uncommitted changes, branch diffs, or specific commits in a Git repository, with optional custom instructions and base-branch comparison.

Instructions

Run non-interactive Codex code review (codex review) on uncommitted changes, a branch diff, or a specific commit.

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": {
      "cwd": "<cwd>"
    },
    "name": "codex_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesAbsolute path to the Git repository.
baseNoReview changes against this base branch.
groupNoTask group name in the orchestrator ledger.代码审查
titleNoOptional commit title to show in the review summary.
commitNoReview changes introduced by a specific commit SHA.
promptNoOptional custom review instructions.
task_nameNoChild task label in the orchestrator ledger.
uncommittedNoReview staged, unstaged, and untracked changes.
wait_secondsNoSeconds to wait before returning running status with job_id (0..600).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose one real trait, 'non-interactive', but omits that the tool creates an orchestrator task/job (implied by group, task_name, and wait_seconds) and what happens when the wait expires. The job semantics are only recoverable from the schema, not the description.

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?

A single front-loaded sentence with the review scopes enumerated inline and zero filler. The parenthetical CLI name is the only extra and it is informative.

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?

This is a 9-parameter, job-spawning tool with no annotations and no output schema, so the description should explain the async/job return behavior and the ledger side effects. Instead it stops after naming the review modes, leaving the agent to reconstruct the orchestration model entirely from parameter descriptions.

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 100%, so the baseline is 3. The description usefully maps its three review modes onto base/commit/uncommitted, but adds no syntax, precedence rules (what happens if multiple modes are supplied), or meaning for the orchestrator-ledger parameters.

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 gives a specific verb and resource ('Run non-interactive Codex code review (`codex review`)') and enumerates the three review scopes: uncommitted changes, branch diff, specific commit. This is enough to distinguish it from general siblings like codex_run or codex_resume, though it never names an alternative 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 three review targets are listed, which implicitly tells the agent which parameter mode to pick, but there is no explicit when-to-use versus codex_run/codex_resume, no prerequisites (e.g., must be inside a Git repo), and no exclusions. Usage is inferable rather than stated.

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