Skip to main content
Glama
Ray0907

Git MCP Server

by Ray0907

get_pull_request_diffs

Retrieve file changes and modifications from pull requests to review code updates and track development progress.

Instructions

Get the changes/diffs of a pull request to see what files were modified

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo")
pr_numberYesPull request number
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the tool retrieves diffs to see modified files, but doesn't disclose behavioral traits like whether it's read-only (implied by 'Get'), rate limits, authentication needs, output format (e.g., patch vs. summary), or pagination. For a tool with zero annotation coverage, this is inadequate.

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?

Single sentence is front-loaded and efficient, with no wasted words. It directly states the purpose, though it could be slightly more structured (e.g., separating intent from outcome).

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 no annotations and no output schema, the description is incomplete. It doesn't explain what the diffs look like (e.g., raw patch, file list), behavioral constraints, or error handling. For a tool that likely returns complex data, more context is needed.

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 parameter documentation in the schema. The description adds no parameter-specific information beyond what the schema provides (e.g., no examples or edge cases). Baseline 3 is appropriate as the schema handles semantics effectively.

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 clearly states the verb 'Get' and resource 'changes/diffs of a pull request', specifying the action and target. It distinguishes from siblings like 'get_pull_request' (which likely returns metadata) by focusing on file modifications, but doesn't explicitly name alternatives or contrast scope.

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?

No guidance on when to use this tool versus alternatives like 'get_pull_request' or 'list_commits'. The description implies usage for viewing file modifications in a PR, but lacks explicit when/when-not instructions or prerequisite context (e.g., after identifying a PR number).

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/Ray0907/git-mcp-server'

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