Skip to main content
Glama

list_pull_requests

List pull requests in a GitHub repository, with optional filters for state, base or head branch, and sorting to find relevant PRs.

Instructions

List pull requests in a repository

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

Input Schema

NameRequiredDescriptionDefault
baseNoOptional filter by base branch name
headNoOptional filter by head user or branch name
repoYesRepository name
sortNoOptional sorting criteriacreated
ownerYesRepository owner
stateNoOptional state of pull requests to returnopen
directionNoOptional sort directiondesc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.8/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 disclosure burden. "List" implies a read-only operation, but nothing is said about permissions, pagination, default state filtering (open), result ordering, or return shape, leaving significant behavioral gaps for a 7-parameter tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no wasted words, but its brevity reflects under-specification rather than tight editing. Nothing is front-loaded beyond the bare purpose.

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 seven parameters, no annotations, and no output schema, an agent needs more than one sentence to understand filtering, default open-state, sorting, and result pagination. The description leaves these complexities unaddressed.

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%, so every parameter including enums and defaults is already documented in the schema. The description adds no filtering, sorting, or formatting semantics beyond what the structured data provides, which meets the baseline of 3.

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") with the scoping context "in a repository". It does not distinguish itself from similar list siblings such as list_issues or list_branches, which an agent could easily confuse it with.

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?

Provides no guidance on when to use this tool, when not to, or which alternatives suit filtered/lookup needs. The agent must infer usage purely from the name and the set of sibling tools.

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