Skip to main content
Glama

github_pull_request_stacks_list

Read-only

List pull request stacks in a GitHub repository, with optional pagination and filtering by a specific pull request number to inspect related stacked PRs.

Instructions

List pull request stacks

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

Input Schema

NameRequiredDescriptionDefault
pageNoThe page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
repoYesrepo
ownerYesowner
per_pageNoThe number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
pull_requestNoFilter to the stack containing this repository pull request number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.9/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 without description help. The description adds no behavioral context beyond that — no mention of pagination semantics, ordering, result shape, or what happens when the pull_request filter matches nothing.

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 short sentence with zero padding, so nothing is wasted. Its brevity is its weakness rather than its structure, since the terseness leaves real questions unanswered.

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?

For a read-only list operation with full schema coverage and no output schema, the minimum an agent needs is present. However, given the ambiguity of "stacks" and the surrounding write-oriented siblings, the definition is thinner than the tool's context warrants.

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 all five parameters including the optional pull_request filter are documented in the schema itself. The description adds no meaning beyond that, which is the baseline 3 case when the schema does the heavy lifting.

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 request stacks"), which is enough to know it retrieves a collection of PR stacks. It does not distinguish itself from siblings such as github_pull_request_stacks_get or github_pull_request_stacks_create, nor does it explain what a "stack" is for agents unfamiliar with stacked PRs.

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 guidance and no mention of alternatives, despite four closely named siblings (add, create, get, unstack) that an agent must choose between. Nothing indicates whether this is meant for discovery, filtering by a single PR, or listing all stacks in a repo.

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