Skip to main content
Glama
subhamyadav580

PR Reviewer MCP Server

get_pull_request_diff

Retrieve the file-by-file diff of a pull request, including status, line additions and deletions, and the raw unified diff patch for code review.

Instructions

Get the file-by-file diff for a specific pull request.

Returns each changed file with its status (added/modified/removed),
line-level additions and deletions, and the raw unified diff patch.

Args:
    repo_full_name: Full repo identifier in "owner/repo" format.
    pr_number: The pull request number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_full_nameYes
pr_numberYes
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the return structure (file status, line-level changes, raw patch) and lists the required parameters. It does not cover authentication or rate limits, but for a read-only tool, this is adequate.

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 concise: a one-line purpose, a sentence on return format, and two lines for parameter comments. No wasted words, and the key information is front-loaded.

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

Completeness5/5

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

Given no output schema, the description adequately explains the return value. The tool is simple with two required parameters, and the description covers both input and output sufficiently. No gaps identified.

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

Parameters5/5

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

Schema description coverage is 0%, but the description's 'Args' section adds meaning for both parameters: repo_full_name (format 'owner/repo') and pr_number (the PR number). This fully compensates for the lack of schema descriptions.

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 verb 'Get' and the resource 'file-by-file diff for a specific pull request', which distinguishes it from sibling tools like get_pull_request_details (likely summary) and list_open_pull_requests (list of PRs).

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 description implies when to use (to get a diff), but does not explicitly state when not to use it or mention alternatives. Usage context is provided indirectly through the purpose.

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/subhamyadav580/pr-reviewer'

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