Skip to main content
Glama
ArthDh

code-reviewer-mcp

by ArthDh

get_branch_diff

Compare your current branch against a base branch to retrieve git diff output for review. Filter changed files by pattern to isolate specific code changes.

Instructions

Get the git diff between the current branch and a base branch.

Args: base_branch: The base branch to compare against (default: development). file_filter: File pattern to filter (default: *.py for Python files). working_directory: Working directory (defaults to current directory).

Returns: The git diff output showing changes on the current branch.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_branchNodevelopment
file_filterNo*.py
working_directoryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does not state whether the operation is read-only (though 'Get' implies it), nor does it mention permissions, rate limits, or side effects. The 'Returns' section adds some value by describing the output as the git diff output, but overall behavioral disclosure is thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description uses an Args and Returns structure that is clear but somewhat verbose for a simple diff tool. It front-loads the purpose, which is good, but the parameter details could be more compact. Overall, it is acceptable but not highly polished.

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?

Given that the tool has an output schema (which likely explains return values), the description need not detail them extensively. It covers parameters adequately but lacks behavioral context (e.g., read-only nature) and usage differentiation from siblings. For a tool with no annotations and 0% schema coverage, it is minimally complete but leaves gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for undocumented parameters. It does so by explaining each of the three parameters: base_branch (default development), file_filter (default *.py for Python files), and working_directory (defaults to current directory). This adds meaningful semantics beyond the raw schema, though it could clarify the format of file_filter patterns or the effect of null.

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

Purpose3/5

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

The description states a verb and resource ('Get the git diff between the current branch and a base branch'), which is clear enough. However, it does not distinguish itself from siblings like get_changed_files or review_diff, which likely operate on similar diff data. The purpose is understandable but not differentiated from alternatives.

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?

There is no explicit guidance on when to use this tool versus siblings such as get_changed_files or review_diff. The description implies usage through context (comparing branches) but provides no when/when-not conditions or alternative routing.

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