Skip to main content
Glama

review

Read-only

Start a read-only code review of a repository or uncommitted changes with custom focus prompts. Returns a background job immediately for status checks or wait commands.

Instructions

Start a read-only code review against a repository. Supports uncommitted changes with a custom review prompt. Returns a background job immediately. Run waitCommand or waitCommandPosix (Bash or Zsh), or call job_status with jobId for output.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoReview changes against a specific base branch (e.g., "main").
modelNoModel or alias for code review (defaults to sol -> gpt-6.2-sol). Aliases auto-resolve from ~/.codex/models_cache.json: sol (gpt-6.2-sol), astra (gpt-6.2-astra), terra (gpt-6.1-terra), or pass any exact slug.
speedNoAlias for serviceTier.
titleNoTitle for a commit review or for uncommitted changes with a custom prompt.
commitNoReview the changes introduced by a specific commit SHA.
promptNoCustom review instructions or focus areas (works both standalone and together with uncommitted=true).
serviceTierNoSpeed tier: fast (priority), ultrafast, or default/standard to disable the override. Case-insensitive. Falls back to CODEX_DEFAULT_SERVICE_TIER. Check listModels for supported tiers.
uncommittedNoReview staged, unstaged, and untracked changes in the working tree.
service_tierNoAlias for serviceTier.
reasoningEffortNoReasoning effort depth: none, minimal, low, medium, high, xhigh, max, ultra (also accepts snake_case reasoning_effort).
reasoning_effortNoAlias for reasoningEffort.
workingDirectoryNoWorking directory to run the review in.

Output Schema

NameRequiredDescriptionDefault
toolYes
jobIdYes
modelYes
statusYes
logFileYes
runnerPidYes
sessionIdYes
stderrFileYes
stdoutFileYes
serviceTierYes
waitCommandYes
waitCommandPosixYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations it discloses the key non-obvious trait: execution is asynchronous and "returns a background job immediately," and it names the three mechanisms for harvesting output. The read-only claim is consistent with readOnlyHint=true and non-idempotent/non-destructive hints, but it does not state cost, duration, or what happens to the job if abandoned.

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?

Four short sentences, front-loaded with the core action, then the mode caveat, the async return, and the retrieval paths. No filler; the only mild redundancy is restating "read-only" which annotations already imply.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description correctly avoids explaining return shapes and instead covers the async contract and retrieval. The one real hole for a 12-parameter, zero-required tool is that default behavior with no arguments is unspecified.

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 schema already explains base, commit, prompt, uncommitted, model, and the various aliases. The description adds only that the prompt works "standalone and together with uncommitted=true," a marginal but real clarification, which fits the baseline 3 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?

States a specific verb and resource ("Start a read-only code review against a repository") plus the two modes it covers (committed base/commit review and uncommitted working-tree review). It does not explicitly distinguish itself from the sibling adversarial_review, so an agent must infer that difference from the name alone.

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?

Gives useful follow-up routing (waitCommand/waitCommandPosix, or job_status with jobId) and notes the custom-prompt path for uncommitted changes. It never says when to pick this over adversarial_review or codex, nor what the default scope is when called with no arguments, so the when-to-use guidance is implied rather than stated.

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