Skip to main content
Glama
MCP GitHub CrunchTools

MCP GitHub CrunchTools

by crunchtools

Get Pull Request Checks Tool

get_pull_request_checks_tool
Read-only

Get a CI verdict for a pull request that classifies checks as passed, failing, pending, or skipped, so you know whether the PR is clear to merge.

Instructions

Get a CI verdict for a PR that distinguishes skipped from failed.

Classifies every check-run and commit-status context into passed, failing, pending, or skipped. SKIPPED checks are NOT failures. Use the returned ready_to_merge boolean as the signal for whether the PR is clear to merge (True only when nothing is failing or pending and the PR is not known-unmergeable). A token that cannot read check-runs (any fine-grained token) gets the Actions jobs instead; checks_source says which, and only Actions-reported checks are then visible.

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": "<repo>",
      "pull_number": "<pull_number>"
    },
    "name": "get_pull_request_checks_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name
ownerNoRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
pull_numberYesPull request number
allow_no_required_checksNoTreat a PR with no checks as ready; by default zero checks found gives ready_to_merge False with a reason

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.3
    • addedInput schema / properties / allow_no_required_checks
      Added value: +{
      +  "default": false,
      +  "description": "Treat a PR with no checks as ready; by\ndefault zero checks found gives ready_to_merge False with a reason",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv1.3.2
    • addedInput schema / properties / pull_number / minimum
      Added value: +1
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation it discloses real behavioral traits: the passed/failing/pending/skipped classification, the fact that skipped checks are not failures, the exact semantics of ``ready_to_merge``, the token-permission fallback to Actions jobs, and the ``checks_source`` field that reveals which path was taken. That is precisely the kind of condition-dependent behavior an agent cannot infer from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The verdict purpose is front-loaded in the first sentence, followed by the classification rule and then the merge signal, with zero restatement of the tool name or schema. Every sentence carries distinct information.

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

Completeness5/5

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

Output schema exists, yet the description still covers the two things an agent most needs to interpret it (``ready_to_merge`` and ``checks_source``), plus the auth-degradation edge case and the zero-checks default. Nothing needed to call or trust this tool is missing.

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 four parameters including ``allow_no_required_checks`` and the owner default are already documented in structured form. The description adds only indirect meaning (the zero-checks case behind the flag) and otherwise explains outputs rather than parameters, so baseline 3 is appropriate.

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?

States a specific verb and resource ("Get a CI verdict for a PR") and immediately narrows the scope with the skipped-vs-failed distinction, which differentiates it from log-fetching or workflow-run siblings such as get_failed_job_logs_tool and get_workflow_run_tool.

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

Usage Guidelines4/5

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

Gives clear context for use: read the return as a merge-readiness verdict and trust ``ready_to_merge`` as the signal. It does not name an alternative tool for the non-check cases, and it gives no explicit when-not-to-use rule, so it stops short of a 5.

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