Skip to main content
Glama
antigravity-codex-mcp
by Sunlazys

codex_review

Run a non-interactive Codex code review against uncommitted changes, a base branch, a commit, or custom instructions, and receive JSON results.

Instructions

Run a non-interactive Codex code review (codex exec review --json). Choose exactly one target: uncommitted=true, base branch, commit SHA (+optional title), or custom prompt.

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 working directory.
baseNoReview changes against base branch (--base).
modelNo
titleNoOptional commit title displayed in review summary (only valid with commit).
commitNoReview changes in a specific commit (--commit).
promptNoCustom review instructions via stdin (mutually exclusive with uncommitted/base/commit).
profileNoOptional Codex config profile (-p).
sandboxNo
uncommittedNoReview staged, unstaged, and untracked changes (--uncommitted).
wait_secondsNo
output_schemaNo
max_duration_secNo
reasoning_effortNoOptional Codex reasoning effort override (-c model_reasoning_effort=..., e.g. low, medium, high, xhigh).
skip_git_repo_checkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/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 burden: it usefully discloses non-interactive execution and JSON output mode (`codex exec review --json`), which the schema does not convey. However, it omits the operational shape of the call — the presence of `wait_seconds` (capped at 55) strongly implies a long-running job that may need codex_poll or codex_result, and nothing is said about timeout behavior, the safety implications of the `sandbox` values, or whether the review mutates the repo.

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?

Two sentences, no filler, with the command identity front-loaded and the target-selection rule immediately after. Every clause carries information an agent needs.

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 14-parameter tool with a nested `output_schema` object and no output schema, the description is thin: it never explains how to retrieve results (poll/result siblings), what `output_schema` does for structured returns, or what `max_duration_sec` and `wait_seconds` imply about call duration. The essentials for picking a target are covered, but the mechanics of a long-running job are not.

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 57%, and the description meaningfully adds the exclusivity rule across uncommitted/base/commit/prompt plus the title-only-with-commit constraint. It says nothing about the remaining undocumented parameters — model, sandbox, wait_seconds, output_schema, max_duration_sec, skip_git_repo_check — so the coverage gap is only partly compensated.

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 a non-interactive Codex code review') and even names the underlying CLI invocation, so the agent knows this is a review-specific operation rather than a generic run. It does not explicitly contrast with siblings like codex_run or codex_result, so differentiation is inferred from the resource name rather than stated.

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?

'Choose exactly one target: uncommitted=true, base branch, commit SHA (+optional title), or custom prompt' is clear selection guidance with the mutual-exclusion rule stated up front. It stops short of saying when to prefer this tool over codex_run for a review-like task, but the target-selection logic an agent actually needs is present.

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