Skip to main content
Glama

github_pull_request_stacks_get

Read-only

Retrieve a pull request stack by owner, repository, and stack number to inspect grouped PRs and understand stacked changes.

Instructions

Get a pull request stack

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

Input Schema

NameRequiredDescriptionDefault
repoYesrepo
ownerYesowner
stack_numberYesstack_number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so safety and network behavior are covered by structured fields. The description adds nothing beyond that – no mention of what happens when the stack_number is unknown, whether the repo must be public/private, or what the returned stack object looks like.

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?

It is a single short sentence with no filler, so it is concise. But the brevity comes at the cost of substance – there is nothing front-loaded beyond the name restatement, so the structure is minimal rather than efficient.

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?

There is no output schema, three required path parameters, and no explanation of the returned value or of the concept of a PR stack. For a fetch-by-identifier tool the description leaves the agent guessing about the response shape and error behavior.

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 the three required parameters (owner, repo, stack_number) are formally documented and the baseline is 3. The description does not add any semantic meaning beyond the schema – it never explains what stack_number refers to or how it is obtained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description has a verb ("Get") and a resource ("a pull request stack"), so the basic action is identifiable. However, it is essentially a restatement of the tool name, gives no indication of what a "stack" contains or how it differs from the sibling list/create/add/unstack operations.

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?

No when-to-use guidance is given, and no alternatives are named. An agent has to infer from the sibling names alone that this fetches a single existing stack rather than listing or creating one.

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