Skip to main content
Glama
codex-mcp-tool

codex-mcp-tool

review-changes

Read-onlyIdempotent

Run an automated code review of your current repository using Codex CLI to inspect uncommitted changes, specific commits, or diffs against a base branch.

Instructions

Run a code review against the current repository using Codex CLI native review subcommand

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": "review-changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoReview changes against a specific base branch (e.g., "main", "develop")
modelNoOptional model override. Known: gpt-6.1-sol, gpt-6-astra, gpt-6.1-terra, gpt-6-sol, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna. If omitted, uses your Codex CLI default (~/.codex/config.toml).
titleNoOptional title to display in the review summary
commitNoReview the changes introduced by a specific commit SHA
promptNoCustom review instructions or focus areas (cannot be used with uncommitted=true; use base/commit review instead)
timeoutNoMaximum execution time in milliseconds
workingDirNoWorking directory to run the review in (passed via -C as a global Codex option)
uncommittedNoReview staged, unstaged, and untracked changes (working tree) - cannot be combined with custom prompt
reasoningEffortNoReasoning depth for the review. Default: high (code review benefits from deep reasoning).high

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.7.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds that the review runs through the native Codex CLI subcommand, but says nothing about the CLI/auth prerequisite, expected duration, token cost, or that results are returned as a review summary rather than applied changes.

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 front-loaded sentence with no filler or redundancy. It is efficient, though the brevity leaves no room for the routing or behavioral cues the tool needs.

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?

For a 9-parameter open-world tool with no output schema, the description should say what a call returns and what it requires (Codex CLI installed/config). Annotations cover the safety dimension and the schema covers parameters, so it is workable but incomplete on returns and preconditions.

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% and every parameter carries a substantive description, including enumerations and the prompt/uncommitted conflict, so the schema does the work. The description adds no parameter meaning beyond restating 'review subcommand', which lands at the baseline 3.

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?

States a specific verb+resource: run a code review against the current repository via the Codex CLI review subcommand. An agent can tell what it does, but nothing in the description distinguishes it from siblings like ask-codex or batch-codex, which likely also drive Codex.

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 when-to-use guidance, no exclusions, no pointer to an alternative for reviewing a different repository or a non-review Codex task. The only constraint hints (prompt vs uncommitted incompatibility) live in the schema, not the description.

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