Skip to main content
Glama
GitHub PR Issue Analyser

GitHub PR Issue Analyser

by saidsef

Github Get Pr Status Checks

github_get_pr_status_checks
Read-only

Retrieve CI check runs and commit statuses for a pull request's HEAD commit, and flag truncated results when pagination limits leave a partial view.

Instructions

Return the CI check runs and commit status for a pull request's HEAD commit.

Pages through up to MAX_STATUS_CHECKS_SUITE_PAGES of check suites (50 per page). For any suite whose first 100 runs are not the full set, drains up to MAX_STATUS_CHECKS_RUN_PAGES_PER_SUITE additional pages via the supplemental query. If either cap is hit before the connection is exhausted, the result is flagged truncated=True and overall is downgraded from 'passing' to 'unknown' so the caller does not act on a partial view. head_sha names the commit read, and is None when GitHub resolves no commit for the pull request. See #515.

Workflow and conventions: github_get_skill('ci-checks').

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_status_checks"
  }
}

Input Schema

NameRequiredDescriptionDefault
pr_numberYes
repo_nameYes
repo_ownerYes

Output Schema

NameRequiredDescriptionDefault
overallYes
head_shaYes
pr_numberYes
truncatedYes
check_runsYes
commit_statusesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv54.0.0
    • addedOutput schema / properties / head_sha
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "pr_number",
      -  "overall",
      -  "check_runs",
      -  "commit_statuses",
      -  "truncated"
      -]New value: +[
      +  "pr_number",
      +  "head_sha",
      +  "overall",
      +  "check_runs",
      +  "commit_statuses",
      +  "truncated"
      +]
  2. Addedv42.0.0

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (which only establish it is a safe, open-world read), the description discloses real behavioral traits: pagination caps of 50 per suite page and 100 runs per suite, a supplemental drain query, and a truncation flag that downgrades 'overall' from 'passing' to 'unknown'. It also explains that head_sha can be None when GitHub resolves no commit — exactly the kind of edge case an agent must not act on blindly.

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?

The purpose is correctly front-loaded, but the middle section is dense with opaque internal constant names (MAX_STATUS_CHECKS_SUITE_PAGES, MAX_STATUS_CHECKS_RUN_PAGES_PER_SUITE) that carry no values, and the trailing 'See #515' is noise for an agent with no issue tracker access.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return-field definitions are off the description's plate, yet it still explains the salient return semantics (truncated flag, overall downgrade, head_sha None case). For a read-only three-parameter tool this leaves little an agent needs missing, aside from explicit guidance on what to do when truncated=True.

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 0%, so the schema supplies no per-parameter documentation; however the three parameters (repo_owner, repo_name, pr_number) are self-describing by name and the description implies the PR/commit scoping. The mention of head_sha refers to a return field, not an input, so the description adds little genuine parameter meaning.

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

Purpose5/5

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

The first sentence gives a specific verb and resource: 'Return the CI check runs and commit status for a pull request's HEAD commit.' That is unambiguous and clearly distinct from every listed sibling (none of which fetch CI check status), so an agent can select it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the resource itself — the agent infers 'use this when you need to know whether a PR's checks passed.' There is no explicit when-to-use/when-not framing and no named alternative for related needs, though the pointer to github_get_skill('ci-checks') does gesture at a workflow convention.

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