Skip to main content
Glama

Retry Pipeline Job

gitlab_retry_pipeline_job

Retry a failed GitLab pipeline job and optionally override its typed input values to rerun with corrected parameters.

Instructions

Retry one failed job. job_inputs overrides typed values for the job's inputs definitions.

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": "gitlab_retry_pipeline_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
job_inputsNo
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.7.0
    • addedInput schema / properties / job_inputs
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. First observedv1.6.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare this is a non-readonly, non-idempotent, non-destructive open-world call, so the mutation and repeat-safety profile is covered. The description adds the meaningful constraint that the job must have failed, but omits whether a new job is created, whether permissions beyond job access are required, and what error surfaces on a non-retryable job.

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?

Two short sentences, mutation and scope stated first, no filler. The second sentence is terse to the point of being slightly cryptic, but nothing is wasted.

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

Completeness2/5

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

For a mutation tool with no output schema, no annotations covering authorization or failure modes, and undocumented parameters, the definition says far too little about what the caller gets back and what preconditions must hold. An agent cannot reliably construct the project_id/job_id pairing from this text alone.

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

Parameters2/5

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

Schema coverage is 0%, so the description carries the full burden, yet it only explains job_inputs (overriding typed input definitions). job_id and the optional project_id are left entirely undefined, with nothing on whether project_id is required to disambiguate the job's namespace or what happens when it is omitted.

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?

"Retry one failed job" gives a specific verb plus resource and narrows scope to failed jobs, which is more precise than the name alone. It does not distinguish this from the sibling gitlab_retry_pipeline (whole-pipeline retry), so an agent must infer the granularity difference.

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?

The word "failed" implies the applicable condition (only failed jobs can be retried), but there is no explicit when-not guidance, no statement of what happens if the job already succeeded or was canceled, and no pointer to an alternative such as gitlab_play_pipeline_job when a job is manual/blocked.

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