Skip to main content
Glama
GitHub PR Issue Analyser

GitHub PR Issue Analyser

by saidsef

Github Rerun Job

github_rerun_job

Retry a GitHub Actions job and its dependent jobs without a branch commit; returns workflow_run_id for follow-up.

Instructions

Re-runs one Actions job and every job that depends on it, without a commit on the branch. Each call starts another attempt, so calling it twice runs the job twice. A re-run keeps the privileges of the first run, so a Dependabot job that failed on its read-only token wants github_create_empty_commit instead. It returns the run's id as workflow_run_id, which github_get_workflow_runs follows. See #503 and #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>",
      "job_id": "<job_id>"
    },
    "name": "github_rerun_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe check run's id, as github_get_pr_status_checks reports it
repo_nameYes
repo_ownerYes
enable_debug_loggingNoRun the job again with runner and step debug logging

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv54.0.0

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already declare readOnlyHint=false, idempotentHint=false, and openWorldHint=true. The description reinforces this by spelling out the non-idempotent consequence ('each call starts another attempt, so calling it twice runs the job twice') and adds a real behavioral caveat that annotations cannot express: a re-run keeps the privileges of the first run, so it cannot work around a read-only token. It also forwards the returned workflow_run_id to github_get_workflow_runs, so the agent knows what to do next. Nothing here contradicts the annotations.

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?

The key verb and scope come first, and the privilege caveat, retry hazard, and return-value hint follow efficiently. The trailing 'See #503 and #537' is an unexplained issue reference that costs space without telling the agent anything actionable, and the mid-sentence line breaks make it slightly harder to scan.

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?

For a non-idempotent mutation tool, it covers exactly what an agent needs: what it does, when to choose the alternative instead, that repeated calls duplicate work, the privilege-inheritance limitation, and which tool consumes the returned workflow_run_id. Output schema exists, so it does not need to enumerate return values, and it still explains the one field that drives follow-up calls.

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 only 50%: job_id and enable_debug_logging are documented in the schema, while repo_owner and repo_name have no descriptions in either place. The description compensates only indirectly, since it never mentions job_id's origin (the schema points to github_get_pr_status_checks) and says nothing about debug logging. With these gaps, it sits at the baseline: the schema carries the parameter burden and the description adds essentially no 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 states a specific verb and resource plus its scope: re-runs one Actions job *and every job that depends on it*, without needing a commit on the branch. It also names the sibling it is not (github_create_empty_commit) for a specific failure case, so an agent can distinguish it from the empty-commit alternative without opening a schema.

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

Usage Guidelines5/5

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

It explicitly states when to use it (re-running a job) and when not to (a Dependabot job that failed on a read-only token wants github_create_empty_commit instead), and it flags the doubling hazard: 'calling it twice runs the job twice.' It also points to the github_get_skill('ci-checks') workflow for conventions, which is concrete routing guidance rather than inference.

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