Skip to main content
Glama

GitHub CI failures

gh_ci_failures
Read-onlyIdempotent

Lists failing CI checks for a commit, branch, or PR head and shows failed step names; enable log tails to locate errors in up to three failing jobs.

Instructions

List failing check runs for a commit or branch/PR head, with the failed step names when GitHub exposes them. Read-only. Set include_logs=true to also get the tail of the failing job's log, which is usually where the error is; that costs one extra request per job (up to three jobs).

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>",
      "ref": "<ref>"
    },
    "name": "gh_ci_failures"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesCommit sha, branch name, tag or PR head ref
repoYesRepository as owner/name
log_linesNoLines of log kept per job, centred on the first error
include_logsNoFetch the log around the first error for up to three failing jobs (needs GITHUB_TOKEN)

Output Schema

NameRequiredDescriptionDefault
refYesThe ref that was resolved, e.g. a full sha
shaYesResolved commit sha, null when the ref did not resolve to a commit
repoYesRepository as owner/name
failuresYes
checkedRunsYesCheck runs GitHub reported for the ref

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description's "Read-only" line adds nothing, but the rest does: partial-data caveat ("when GitHub exposes them"), a request-cost disclosure (one extra request per job, capped at three jobs), and the fact that logs are centred on the first error. That is meaningful behavior beyond the annotation block.

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?

Three sentences, front-loaded with what the tool returns, followed by the optional-log tradeoff; nothing is buried or repeated. The only dead weight is the redundant "Read-only" sentence, which restates readOnlyHint=true from the annotations.

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?

An output schema exists, so return shape needn't be described, and the schema documents all four parameters including the GITHUB_TOKEN requirement for logs. The description covers purpose, cost, and data-availability caveats, leaving only a minor gap around failure modes (e.g., what happens when include_logs=true without a token).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description genuinely adds meaning on top: it explains why include_logs matters (the log tail is usually where the error is) and reinforces the three-job cap, which frames the parameter as a diagnostic aid rather than a raw flag. It does not elaborate on log_lines' centring behavior beyond what the schema already states.

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 opens with a specific verb+resource: "List failing check runs for a commit or branch/PR head," plus a qualifier that failed step names are included when GitHub exposes them. That is far more precise than the title alone, though it never explicitly contrasts with a nearby sibling such as gh_pr_context, so it stops short of a 5.

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?

It gives concrete conditional guidance: set include_logs=true "which is usually where the error is," and warns that this costs one extra request per job (up to three jobs). That is actionable when-to-use advice with a cost tradeoff, but there are no explicit exclusions or named alternative tools for cases where this tool is the wrong choice.

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