Skip to main content
Glama

Claude Review Diff

claude_review_diff

Review code changes by analyzing git diffs with optional base comparison. Claude provides independent, read-only feedback on uncommitted changes or patches since a specified reference.

Instructions

Have Claude review your actual code changes: the server runs read-only git in the given repository and gives Claude the diff plus read access to the surrounding files. Pass the repository root as workspace_dir. By default it reviews uncommitted changes against HEAD; pass base (a branch, tag, or commit) to review everything since that ref (base...HEAD). Use it after implementing something to get an independent cross-model review of the change itself. Claude only advises; it never modifies anything. For reviewing files without git context, use claude_review_files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNoBranch, tag, or commit to compare as base...HEAD. Omit to review uncommitted changes against HEAD.
depthNodeep lets Claude delegate read-only exploration to sub-agents for large scopes - slower and several times the usage; requires the machine to enable CLAUDE_CONSULT_CAPABILITY=deep-research.
modelNoClaude model override: opus, sonnet, haiku, or a full model id. Omit for the configured default.
questionNoOptional focus for the diff review.
session_idNosession_id from a previous result footer to continue that conversation.
workspace_dirYesRepository root to inspect with read-only git commands.
Behavior4/5

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

Given no annotations, the description carries full burden. It clearly states that the tool runs read-only git commands and that Claude never modifies anything. It also discloses behavioral traits such as the 'deep' depth mode being slower and higher usage. However, it does not mention error handling or performance limits.

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?

The description is concise and well-structured, front-loading the primary purpose and then elaborating on key parameters and usage context. Every sentence adds value, with no redundancy.

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?

While the description covers usage well and mentions the result footer for session continuation, it does not explicitly describe the output format (e.g., what the review looks like) since no output schema exists. A bit more detail on the output would improve completeness.

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 baseline is 3. The description adds context about default behavior and the purpose of the 'base' parameter, but does not significantly enhance understanding beyond what the schema already provides for each parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: reviewing actual code changes via read-only git operations. It specifies the verb 'review', the resource 'code changes', and distinguishes from the sibling tool 'claude_review_files' by noting that this tool requires git context.

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

Usage Guidelines5/5

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

Explicitly mentions when to use ('after implementing something'), explains default behavior (review uncommitted changes against HEAD), describes how to use the 'base' parameter for comparing against a ref, and recommends an alternative tool for non-git reviews. Also states that Claude only advises and never modifies anything.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Chao-Shiun/claude-consult-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server