Skip to main content
Glama
GitHub PR Issue Analyser

GitHub PR Issue Analyser

by saidsef

Github Get Workflow Runs

github_get_workflow_runs
Read-only

Reads workflow runs by ID or by branch, tag, or SHA commit, including each run's jobs and steps. Optionally waits until all runs complete, so you can inspect CI status and results.

Instructions

Reads a workflow run by id, or every run on the commit that head names, with each run's jobs and their steps. A wait polls until every run has completed, and the server caps it so a task ends before its worker hands it to another. timed_out says a run had not completed when the tool returned. See #537.

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

Input Schema

NameRequiredDescriptionDefault
headNoBranch, tag or SHA whose commit to read every run of, in place of run_id
run_idNoA run's id, such as the workflow_run_id github_dispatch_workflow returns
repo_nameYes
repo_ownerYes
wait_secondsNoSeconds to wait for every run to complete, capped by the server

Output Schema

NameRequiredDescriptionDefault
runsYes
timed_outYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv55.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, open-world profile, so the description's real contribution is the wait semantics: polling until every run completes, a server-side cap so a task finishes before its worker is reassigned, and the meaning of timed_out when a run was still incomplete. That explains the otherwise puzzling idempotentHint=false for a read tool. It still omits error behavior and how the cap value is chosen.

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 opening sentence is well front-loaded, and the wait/timed_out sentences each earn their place. However, 'See #537' is an opaque issue reference with no resolvable meaning for an agent, and the skill cross-reference adds tail clutter that dilutes an otherwise tight paragraph.

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-value documentation is not required, yet the description still explains the semantically important timed_out field. Behavioral edge cases are covered for the wait path. Minor gaps remain: what happens if neither run_id nor head is supplied, and how errors or an empty run set are reported.

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 only 60%, and the description compensates: it establishes that head means 'branch, tag or SHA whose commit to read every run of' and is mutually exclusive with run_id ('in place of run_id'), and it explains wait_seconds as a polling window that the server caps. repo_owner and repo_name remain unexplained but are self-evident.

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 uses a specific verb and resource ('Reads a workflow run') and enumerates both selection modes: by id, or every run on the commit a head names. It implicitly separates itself from github_dispatch_workflow by noting the run_id is the value that dispatch returns, but it never names a sibling tool outright to force differentiation.

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?

It clarifies when to use each selector ('by id, or every run on the commit that head names, in place of run_id'), which is genuine routing guidance. It does not say when to use this instead of adjacent tools like github_get_job_log or github_get_pr_status_checks, nor when a wait is worth requesting versus polling separately; the pointer to github_get_skill('pr-analysis') offloads conventions elsewhere.

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

Deploy Server

Other Tools