Skip to main content
Glama

ci_retry

Re-run a finished CI job (GitLab or GitHub), such as a failed test job, by passing its job ID. Use it to retry failed builds without triggering a full pipeline.

Instructions

Run a finished CI job of this repo again (GitLab or GitHub), e.g. a failed test job.

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": {
      "job_id": "<job_id>"
    },
    "name": "ci_retry"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real behavioral context: the job must be finished, the target is 'this repo', and both GitLab and GitHub are supported. It omits the side effects (a new pipeline run is created), permission/auth requirements, and whether the call is synchronous or returns a new job id.

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?

One short sentence with the key scope constraints front-loaded and no filler. The 'e.g. a failed test job' clause is illustrative rather than essential, but it costs little and aids recognition.

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

Completeness3/5

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

For a simple one-parameter mutation with no output schema and no annotations, the definition covers purpose and precondition but leaves the agent guessing about the result (new job id? status?) and error conditions such as an unfinished job. Adequate but with clear gaps.

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?

The single parameter job_id has 0% schema description coverage, so the description must compensate. It only implicitly signals that job_id refers to a finished job of the current repo; it says nothing about format, source (GitLab vs GitHub id namespaces), or what happens on an invalid id.

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 ('Run a finished CI job ... again') and adds scope ('of this repo', 'GitLab or GitHub'). It is clear on its own, but gives no hint of how it differs from the sibling ci_run or ci_play, which an agent must disambiguate by name alone.

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?

'a finished CI job ... e.g. a failed test job' implies the precondition (job must already have completed) and a typical scenario, but it never says what to do for a running/queued job or when to prefer ci_run or ci_play instead. Usage is inferable rather than stated.

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