Skip to main content
Glama
GitHub PR Issue Analyser

GitHub PR Issue Analyser

by saidsef

Github Get Pr Content

github_get_pr_content
Read-only

Fetches content and details for a specific GitHub pull request by repo owner, repo name, and PR number, supporting targeted pull request analysis.

Instructions

Fetches the content/details of a specific pull request.

Workflow and conventions: github_get_skill('pr-analysis').

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": {
      "repo_owner": "<repo_owner>",
      "repo_name": "<repo_name>",
      "pr_number": "<pr_number>"
    },
    "name": "github_get_pr_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pr_numberYes
repo_nameYes
repo_ownerYes

Output Schema

NameRequiredDescriptionDefault
stateYes
titleYes
authorYes
labelsYes
mergedYes
commitsYes
base_refYes
head_refYes
head_shaYes
is_draftYes
additionsYes
assigneesYes
deletionsYes
mergeableYes
created_atYes
updated_atYes
descriptionYes
changed_filesYes
mergeable_stateYes
requested_teamsYes
requested_reviewersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv55.0.0
    • addedOutput schema / properties / assignees
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / labels
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "title",
      -  "description",
      -  "author",
      -  "created_at",
      -  "updated_at",
      -  "state",
      -  "is_draft",
      -  "merged",
      -  "mergeable",
      -  "mergeable_state",
      -  "head_sha",
      -  "head_ref",
      -  "base_ref",
      -  "requested_reviewers",
      -  "requested_teams",
      -  "commits",
      -  "additions",
      -  "deletions",
      -  "changed_files"
      -]New value: +[
      +  "title",
      +  "description",
      +  "author",
      +  "created_at",
      +  "updated_at",
      +  "state",
      +  "is_draft",
      +  "merged",
      +  "mergeable",
      +  "mergeable_state",
      +  "head_sha",
      +  "head_ref",
      +  "base_ref",
      +  "requested_reviewers",
      +  "requested_teams",
      +  "labels",
      +  "assignees",
      +  "commits",
      +  "additions",
      +  "deletions",
      +  "changed_files"
      +]
  2. Changed9 schema fields changedv54.0.0
    • addedOutput schema / properties / additions
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / changed_files
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / commits
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / deletions
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / is_draft
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / mergeable
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / mergeable_state
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / merged
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "title",
      -  "description",
      -  "author",
      -  "created_at",
      -  "updated_at",
      -  "state",
      -  "head_sha",
      -  "head_ref",
      -  "base_ref",
      -  "requested_reviewers",
      -  "requested_teams"
      -]New value: +[
      +  "title",
      +  "description",
      +  "author",
      +  "created_at",
      +  "updated_at",
      +  "state",
      +  "is_draft",
      +  "merged",
      +  "mergeable",
      +  "mergeable_state",
      +  "head_sha",
      +  "head_ref",
      +  "base_ref",
      +  "requested_reviewers",
      +  "requested_teams",
      +  "commits",
      +  "additions",
      +  "deletions",
      +  "changed_files"
      +]
  3. Addedv42.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered structurally. The description adds one genuine behavioral convention — that a skill must be loaded first ('Workflow and conventions: github_get_skill('pr-analysis')') — but otherwise says nothing about scope, rate limits, or what 'details' includes.

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?

Two short sentences with no filler and the purpose front-loaded. The second line is terse to the point of being cryptic — 'pr-analysis' is never explained — but it is not wasteful.

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?

An output schema exists, so return values need not be described, and the read-only nature is covered by annotations. What is missing for a three-param, zero-coverage tool is any parameter meaning and any disambiguation from the many PR siblings, leaving the definition only minimally complete.

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 0% across three required parameters, so the description carries the full burden and adds no meaning at all — no format for repo_owner/repo_name, no note that pr_number is per-repository. The parameter names are largely self-explanatory, which prevents a score of 1, but nothing compensates for the coverage gap.

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 ('Fetches the content/details of a specific pull request'), which is immediately actionable. However, 'content/details' is vague and does not distinguish this from close siblings such as github_get_pr_diff, github_get_pr_status_checks, or the generic github_api_read, so an agent cannot route unambiguously on the description alone.

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 or when-not-to-use guidance, and no mention of alternatives despite several overlapping PR-read siblings. The only contextual hint is a pointer to github_get_skill('pr-analysis'), which signals a workflow prerequisite but does not explain under what conditions this tool is the right choice.

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