Skip to main content
Glama
GitHub Projects MCP Server

GitHub Projects MCP Server

by ProRanked

get_issue_hierarchy

Retrieve the complete parent-child hierarchy for a GitHub issue using owner, repository, and issue number to understand dependencies and project structure.

Instructions

Get the full hierarchy of an issue (parents and children)

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>",
      "issueNumber": "<issueNumber>"
    },
    "name": "get_issue_hierarchy"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name
ownerYesRepository owner
issueNumberYesIssue number to get hierarchy for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and mostly falls short. It indicates the response includes parents and children, but does not say whether the hierarchy is recursive/transitive, whether it includes the issue itself, how deep it goes, or whether it needs read permissions on parent repositories.

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 front-loaded sentence with no redundant wording. It is efficient, though the terseness leaves the parenthetical scope doing a lot of unstated work.

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 simple three-parameter read tool with a fully documented schema, this is close to adequate, but the absence of annotations and of any statement about hierarchy depth or return shape leaves real gaps for an agent deciding whether one call suffices.

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 owner, repo, and issueNumber are already documented, and the baseline is 3. The description adds only marginal meaning by implying issueNumber anchors a parent/child traversal.

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 ("Get") and resource ("issue hierarchy") and scopes it with "(parents and children)", which tells an agent this is not the same as fetching a single issue. It does not explicitly name sibling tools like get_issue or set_parent, so differentiation is inferable rather than stated.

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 guidance on when to choose this over get_issue, list_issues, or set_parent, nor any prerequisites or exclusions. An agent must infer the use case purely from the wording.

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