Skip to main content
Glama
GitHub PR Review MCP Server

GitHub PR Review MCP Server

review_pull_request

Review a GitHub pull request by analyzing code, detecting issues and security vulnerabilities, and reporting findings by severity.

Instructions

Comprehensive review of a pull request including code analysis, issue detection, and security checks

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": "review_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name
ownerYesRepository owner (username or organization)
pull_numberYesPull request number
include_securityNoInclude security vulnerability analysis (default: true)
severity_thresholdNoMinimum severity level to report (default: medium)medium
include_best_practicesNoInclude best practices recommendations (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/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. It does disclose the three analysis dimensions performed (code, issues, security), which is meaningful behavior beyond the name, but it says nothing about side effects — whether results are posted as PR comments or merely returned — nor about permissions, runtime, or cost for what is likely an expensive operation.

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 well-formed sentence with the resource front-loaded and the scope enumeration trailing. No filler or redundancy, though it is short enough that some necessary detail was omitted rather than included.

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

Completeness3/5

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

With six parameters, three required, and no annotations or output schema, the description should clarify the return shape (a report? a verdict? inline comments?) and confirm whether the call is read-only. Neither is addressed, leaving real gaps for a tool of this complexity, though the purpose itself is fully covered.

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% and every parameter including defaults and the severity enum is documented in the schema. The description references security checks, loosely correlating with include_security, but adds no format, range, or interaction details beyond the structured fields, so 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?

States a specific verb and resource (review a pull request) and enumerates the scope of the review: code analysis, issue detection, security checks. An agent knows exactly what the tool does, but nothing distinguishes it from siblings like analyze_code_diff or get_pull_request, so it stops short of 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?

There is no when-to-use or when-not-to-use guidance, no prerequisites, and no reference to any alternative tool. For a review tool whose sibling analyze_code_diff overlaps substantially, the absence of routing guidance leaves the agent to guess which to pick.

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