Skip to main content
Glama
GitHub PR Review MCP Server

GitHub PR Review MCP Server

get_repository_prs

List pull requests in a GitHub repository with filters for state, sort order, and result limit to review and prioritize code changes.

Instructions

List pull requests for a repository with filtering options

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>"
    },
    "name": "get_repository_prs"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name
sortNoSort criteria (default: created)created
limitNoMaximum number of PRs to return (default: 10, max: 100)
ownerYesRepository owner (username or organization)
stateNoPR state filter (default: open)open

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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, yet it does not confirm read-only semantics explicitly, does not mention pagination beyond the schema's limit cap, and does not say whether results are PR summaries or full PR objects. For a list tool whose sibling returns single-PR detail, that distinction matters a lot.

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?

One short sentence, front-loaded with the verb and resource, with no filler. It is efficient, though the brevity is partly what leaves the behavioral gaps noted elsewhere.

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?

With no annotations and no output schema, the description should say more about what comes back and how it differs from the single-PR tool. Nothing about return shape, pagination behavior, or result volume is disclosed, leaving the agent to guess on a 5-parameter tool.

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%: owner, repo, state, sort, and limit all have descriptions and defaults in the schema, so the description needs to add little. It adds nothing beyond 'filtering options', 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?

States a specific verb and resource: 'List pull requests for a repository'. That is clearly distinguishable from the singular get_pull_request sibling, but the description never names or contrasts it, so differentiation is left to the agent.

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?

'with filtering options' hints at scope but gives no when-to-use guidance, no exclusions, and no pointer to alternatives such as get_pull_request or review_pull_request. The agent must infer that this is the enumeration tool rather than the detail-fetch tool.

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