Skip to main content
Glama

git_range_diff

Read-onlyIdempotent

Compare two commit ranges in a Git repository to view the differences between them.

Instructions

Compare two commit ranges.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newBaseYes
newHeadYes
oldBaseYes
oldHeadYes
repositoryIdYesID returned by git_list_repositories

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
outputYes
truncatedYes
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds no behavioral context beyond the basic operation, such as the meaning of the ranges or the nature of the output. It does not contradict annotations, but fails to add value beyond them.

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?

The description is a single concise sentence of four words, with no waste. It front-loads the verb and resource. However, it is so terse that it omits useful context, preventing a perfect score.

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

Completeness2/5

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

Despite having annotations and an output schema, the description fails to explain the parameter semantics or disambiguate from sibling tools. For a 5-parameter required tool with low schema coverage, the description is inadequate for an AI to invoke it correctly with confidence.

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

Parameters2/5

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

Schema coverage is only 20% (only repositoryId has a description). The description does not explain oldBase, oldHead, newBase, or newHead, nor their relationship as commit ranges. The parameter names are self-explanatory to Git users, but the description does not compensate for the lack of schema descriptions.

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?

The description uses verb 'Compare' and resource 'commit ranges', clearly stating the operation. It is distinct from siblings like git_compare_refs (which compares refs) and git_diff (single commits), though it doesn't explicitly call out the distinction. Lacks detail on what output is produced, so not a 5.

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?

The description provides no guidance on when to use this tool versus alternatives such as git_compare_refs or git_diff. No scenarios, exclusions, or alternative suggestions are mentioned.

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/kazuki0529/git-readonly-mcp'

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