Skip to main content
Glama

Get GitHub Pull Requests

get_github_prs
Read-onlyIdempotent

List pull requests from a GitHub repository, auto-detecting owner and repo from your current git repository to avoid manual input errors.

Instructions

List pull requests from a GitHub repository. IMPORTANT: Do NOT guess owner/repo values - leave them empty to auto-detect from the current git repository.

Input Schema

NameRequiredDescriptionDefault
repoNoRepository name - LEAVE EMPTY to auto-detect from git. Only specify if user explicitly provides.
limitNo
ownerNoRepository owner - LEAVE EMPTY to auto-detect from git. Only specify if user explicitly provides.
stateNoopen
use_test_dbNo

Output Schema

NameRequiredDescriptionDefault
codeNoError code (e.g. VALIDATION_ERROR, INTERNAL_ERROR)
repoNo
countNo
errorNoHuman-readable error message
ownerNo
detailsNoAdditional error context
categoryNoError category (validation, query, connection, internal)
suggestionNoSuggested fix for the error
instructionNo
recoverableNoWhether the error is recoverable
detectedRepoNo
pullRequestsNo
detectedOwnerNo
aggregated_errorsNoDetails of individual errors in a multi-step operation
requiresUserInputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description's main added behavior is the git auto-detection requirement, but that same instruction is already written into the repo/owner schema descriptions, so it adds little beyond structured data. Auth needs (GitHub token), pagination, and how many PRs are fetched are unmentioned.

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?

Two sentences, action first and the critical caveat second. No filler; the emphasis on not guessing owner/repo is well placed after the purpose statement.

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?

An output schema exists and annotations cover safety, so the definition needn't explain return values. But for a zero-required-parameter tool with a state filter, a limit, and a use_test_db flag, the description leaves the agent without enough to choose parameter values or to distinguish this from get_github_pr.

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

Parameters2/5

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

Schema description coverage is only 40%, so the description needs to compensate and does not. It reinforces the owner/repo auto-detect rule (already in the schema) but says nothing about limit (default 20), state (default "open"), or use_test_db, leaving three of five parameters semantically undocumented anywhere.

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 from a GitHub repository"), which is clear on its own. It does not, however, differentiate itself from the sibling get_github_pr (singular) or explain how it relates to get_github_issues / get_github_context, so an agent must infer the list-vs-single distinction.

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 "IMPORTANT: Do NOT guess owner/repo" instruction gives concrete invocation guidance, but it is parameter-level guidance rather than when-to-use guidance. There is no statement of when to prefer this over get_github_pr or get_github_context, and no exclusion conditions.

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

Deploy Server

Other Tools