Skip to main content
Glama

codex_review

Runs Codex code review on a Git repository to inspect branch, commit, or uncommitted changes with optional custom review instructions.

Instructions

Run Codex's built-in non-interactive code review (codex exec review) on a Git repository.

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 to review.
baseNoReview changes against this base branch (e.g. 'main').
modelNoOptional model override for Codex. Omit to use the model selected in the Codex Bridge UI panel or ~/.codex/config.toml.
titleNoOptional title to display in the review summary.
commitNoReview changes introduced by a specific commit SHA.
configNoOptional Codex config overrides in 'key=value' TOML format (passed as -c).
promptNoOptional custom review instructions.
uncommittedNoReview staged, unstaged, and untracked changes in the working tree.
timeout_secondsNoMaximum seconds to wait before aborting (default 600).
reasoning_effortNoOptional reasoning effort override for Codex. Omit to use the level selected in the Codex Bridge UI panel or Codex default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden. It states the operation is non-interactive, which is genuinely useful, but omits that it is potentially long-running (timeout defaults to 600 s), that it presumes an installed and authenticated Codex, whether it mutates anything, and where review output appears (UI panel vs. return value).

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 tight sentence with the operation front-loaded and the underlying command cited inline; nothing is wasted. It is arguably too short rather than padded, which is penalized under completeness rather than structure.

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?

For a ten-parameter tool with no annotations and no output schema, the description is thin. It never clarifies that base/commit/uncommitted are alternative scoping modes, how prompt interacts with the built-in review, or what the caller gets back, leaving the agent to guess at meaningful calling decisions.

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 the schema already documents all ten parameters, including the model/config override and reasoning_effort enum. The description adds nothing about how base, commit, and uncommitted relate or conflict, so it stays at the baseline for a fully documented schema.

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?

Names a specific verb and resource: runs Codex's built-in non-interactive code review (`codex exec review`) against a Git repository. The 'non-interactive' qualifier plus the underlying command make the behavior distinguishable from a general agent run, though no sibling tool is named for contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to choose this over codex_run or codex_goal, and no explanation of how the mutually plausible scoping modes (base, commit, uncommitted) should be picked. The agent must infer from parameter names alone that these are alternative review targets.

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