Skip to main content
Glama

List pull requests

list_pull_requests
Read-only

Retrieve pull requests from a GitHub repository, filtered by state and target branch, to review open, closed, or all PRs with sorting and paging.

Instructions

List pull requests in a repository. Filter by state and target branch.

Input Schema

NameRequiredDescriptionDefault
baseNoOnly PRs targeting this branch, e.g. 'main'
repoYesRepository name, e.g. 'spring-boot'
sortNocreated
limitNoNumber of results to return (1-100, default 20)
ownerYesRepository owner (user or organization), e.g. 'spring-projects'
stateNoopen
offsetNoNumber of results to skip, for paging (default 0)
directionNodesc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. However, the description adds no behavioral context beyond the purpose: it does not mention the default state of 'open', pagination via limit/offset, sorting behavior, or what the returned list contains.

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 two short sentences, front-loaded with the core action and followed by the key filter dimensions. There is no filler or redundant phrasing.

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 8 parameters, no output schema, and only 63% schema description coverage, the definition is too thin. It omits important operational details such as default state, pagination, sorting, and whether the response includes PR metadata, leaving an agent to infer behavior from the schema alone.

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 63%. The description names state and target branch, but the schema already documents 'base' and explicitly enumerates 'state'. It does not clarify defaults, sort values such as 'popularity' or 'long-running', direction, or pagination behavior for the undocumented enum parameters.

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 states a specific verb and resource: list pull requests in a repository. It is clear what the tool does, but it does not explicitly differentiate itself from siblings such as search_issues_and_prs or get_pull_request.

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?

The phrase 'Filter by state and target branch' hints at filtering, but there is no guidance on when to use this tool versus search_issues_and_prs, get_pull_request, or list_issues. No prerequisites or exclusions are provided.

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