Skip to main content
Glama

Codex Code Review

codex_review_code

Submit a git diff range, file paths, or code snippet to get Codex code review focused on bugs, performance, security, or style. Returns specific, actionable feedback.

Instructions

Ask Codex to review code. Provide a git diff range, file paths, or a code snippet. Returns specific, actionable feedback.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesWhat to review: git diff range (e.g., "HEAD~3..HEAD"), file paths, or code snippet
contextNoAdditional context about the codebase or changes
focusAreasNoFocus on: bugs, performance, style, security, etc.
workingDirectoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states the output is 'specific, actionable feedback' but says nothing about read-only behavior, whether it reads the working tree or git history, rate limits, or how large inputs are handled. For an analysis tool with zero annotation coverage, this is a significant gap.

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 short sentences that front-load the purpose and then cover inputs and output. Little waste, though the input sentence largely repeats the schema.

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?

With no output schema and no annotations, the description should do more to explain the nature of the feedback and constraints. It is minimally adequate but leaves the agent guessing about scope and behavior.

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 75%, so the schema documents most parameters including target, context, and focusAreas. The description merely restates the target options already in the schema and adds no syntax or format detail; workingDirectory is undocumented in both.

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 ('review code') and clarifies the input form (diff range, file paths, snippet). It does not, however, differentiate itself from siblings like codex_explain_code or codex_review_plan, so an agent must infer the boundary.

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 description implies when to use it (when you have a diff, paths, or snippet to review) but gives no explicit when-not guidance or alternatives. No routing to siblings such as codex_explain_code for explanation tasks.

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