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

Fetches a workflow run by ID or every run for a branch, tag, or commit, including jobs and steps, and optionally polls until runs finish.

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('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>"
    },
    "name": "github_get_workflow_runs"
  }
}

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 a workflow dispatch or github_rerun_job 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. Changed1 schema field changedv56.0.2
    • changedInput schema / properties / run_id / description
      Previous value: -"A run's id, such as the workflow_run_id github_dispatch_workflow returns"New value: +"A run's id, such as the workflow_run_id a workflow dispatch or github_rerun_job returns"
  2. 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 declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the wait polls until all runs complete, the server caps the wait, and timed_out signals an incomplete run at return time.

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 core behavior is front-loaded, but the sentence about the server cap ('so a task ends before its worker hands it to another') is convoluted, and the trailing 'See #537' plus skill pointer add noise without clarifying invocation.

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 values need not be spelled out, and the description still covers the key outcome flag (timed_out) and the wait semantics. Adequate for a 5-parameter read tool.

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 60%, and the description compensates by clarifying that head substitutes for run_id and that wait_seconds is server-capped. It also explains the timed_out outcome, which the schema does not.

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 ('Reads a workflow run by id, or every run on the commit that head names') and enumerates what is returned (jobs and steps). It is clearly distinguishable from log- or status-oriented siblings, though it does not name an alternative tool for the run_id-vs-head choice.

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?

Explains the two selection modes (run_id vs head) and what wait_seconds does, which implies when to use each. It gives no explicit when-not guidance and does not point to a sibling for related needs such as fetching a single job's log.

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