Skip to main content
Glama
skurekjakub

Git Stuff Server

by skurekjakub

git_merge_diff

Generate a text diff for a Git merge commit against its first parent in a local repository. Specify the commit hash and repository path to analyze merge changes.

Instructions

Generates the text diff for a Git merge commit against its first parent within a specified local repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commitHashYesThe Git commit hash (SHA) of the merge commit.
repoPathYesThe absolute path to the local Git repository directory.

Implementation Reference

  • Registers the 'git_merge_diff' tool with the MCP server, referencing imported schema and handler from './tools/gitMergeDiff/gitMergeDiff.js'.
    server.tool(
      "git_merge_diff",
      "Generates the text diff for a Git merge commit against its first parent within a specified local repository.",
      gitMergeDiffSchema,
      gitMergeDiffHandler
    );
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool generates a diff but doesn't mention behavioral traits like whether it's read-only, if it modifies the repository, error handling for invalid commits, or output format details. This leaves significant gaps in understanding how the tool behaves beyond its basic function.

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 a single, well-structured sentence that efficiently conveys the tool's purpose without unnecessary words. It's front-loaded with the core action and includes essential details, making it easy to understand at a glance while avoiding redundancy or fluff.

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?

Given the lack of annotations and output schema, the description is incomplete for a tool that performs a potentially complex operation like Git diff generation. It doesn't explain what the output looks like (e.g., text format, error messages), behavioral constraints, or integration details, leaving the agent with insufficient context to use it effectively beyond basic invocation.

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%, with clear descriptions for both parameters (commitHash and repoPath). The description adds minimal value beyond the schema by specifying that the commit must be a merge commit and the diff is against its first parent, but it doesn't provide additional semantics like format examples or edge cases. This meets the baseline for high schema coverage.

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 specific action ('Generates the text diff') and resource ('for a Git merge commit against its first parent within a specified local repository'), distinguishing it from sibling tools like ado_pr_changes which likely handle Azure DevOps pull requests rather than local Git operations. It precisely defines what the tool does without being vague or tautological.

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 when to prefer it over other diff tools or in what scenarios it's applicable. It mentions a 'specified local repository' but doesn't clarify prerequisites like needing Git installed or the repository being accessible, leaving usage context 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

Related 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/skurekjakub/GitStuffServer'

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