Skip to main content
Glama
GitHub PR Review MCP Server

GitHub PR Review MCP Server

get_pull_request

Retrieve pull request details, including metadata and changed files, using owner, repository, and pull number to support code review and risk analysis.

Instructions

Fetch pull request details including metadata and file changes

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "pull_number": "<pull_number>"
    },
    "name": "get_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name
ownerYesRepository owner (username or organization)
pull_numberYesPull request number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses very little: it does not say whether the call is read-only, whether it requires authentication or specific scopes, or whether file-change lists are truncated or paginated for large PRs.

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?

A single tight sentence with the scope clause ('including metadata and file changes') front-loaded and no filler. It is appropriately sized, though the brevity is partly the cause of the guidance gaps rather than a virtue in itself.

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?

For a three-parameter read tool with full schema coverage and no output schema, the description states the resource and roughly what is returned. The remaining gaps (auth, truncation) are secondary for a simple fetch operation.

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 coverage is 100%, with owner, repo, and pull_number each documented inline, so the description need not restate them. It adds no meaning beyond the schema—for example, it does not clarify accepted pull_number formats or owner/repo case sensitivity—so the baseline 3 applies.

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 names a specific verb ('Fetch') and resource ('pull request details'), then scopes the payload to metadata and file changes. It is clear what the tool does, but it never distinguishes itself from siblings like get_repository_prs or analyze_code_diff.

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?

There is no guidance on when to call this versus get_repository_prs (list) or analyze_code_diff (diff analysis). No prerequisites, rate-limit notes, or private-repo/auth caveats are given, so the agent must infer selection from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.