Skip to main content
Glama
coveyjorjet

mcp-gerrit-code-review

by coveyjorjet

get_file_diff

Get the unified diff of a file in a Gerrit change, including added, removed, and modified lines with context.

Instructions

Get the diff of a specific file in a Gerrit change. Returns the unified diff content including added, removed, and modified lines with context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
change_idYesGerrit change ID (numeric, 'project~branch~changeId', or full Change-Id)
file_pathYesFile path within the change
revision_idNoRevision ID (defaults to 'current')current
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the return format (unified diff with added/removed/modified lines and context), which is useful. However, it omits edge-case behaviors like handling of binary files, invalid file paths, or revision fallback details, leaving some transparency gaps.

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?

Two sentences, each earning its place: the first states purpose, the second describes return content. No fluff, front-loaded, and appropriately sized.

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?

For a simple read-only tool with fully documented parameters and no output schema, the description adequately explains both functionality and return format. It is complete enough for an agent to select and invoke the tool, though it could optionally mention the revision_id default.

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 all three parameters are already well-documented. The description adds no extra meaning beyond the schema, meeting the baseline for high coverage but not exceeding it.

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 'Get the diff of a specific file in a Gerrit change' with a specific verb and resource, distinguishing it from siblings like get_change_details (whole change) and list_change_files (file listing). It also specifies the return type (unified diff) which reinforces purpose.

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 context is clear for when to use this tool (when you need a specific file's diff), but it doesn't explicitly mention alternatives or exclusion criteria. No sibling tool is named as an alternative, so guidance is implied rather than explicit.

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/coveyjorjet/mcp-gerrit-code-review'

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