Skip to main content
Glama

Run project job

gitlab_run_project_job

Run a specific CI/CD job in a GitLab project using project_id and job_id, so you can execute or retry that job through the GitLab API.

Instructions

Run a specific job within a project.

Args: **kwargs: Additional parameters for the request (e.g., project_id, job_id).

Returns: Response: A wrapper containing the original response and a Job model.

Raises: MissingParameterError: If the project_id or job_id is missing. ParameterError: If invalid parameters are provided.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_run_project_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
scopeNo
job_idNo
per_pageNo
max_pagesNo
project_idNo
pipeline_idNo
total_pagesNo
include_retriedNo
job_variable_attributesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv27.3.20
    • removedInput schema / properties / api_parameters
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
  2. First observedv27.3.13

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true, and destructiveHint=false, so the mutation/safety profile is covered. The description adds genuinely new behavioral facts: that project_id and job_id are required (despite the schema declaring nothing required) and that calls return a wrapper containing a Job model. It still omits operational behavior such as what state the job must be in and what side effects the run produces.

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 verb-and-resource sentence is front-loaded and clear, but the rest is auto-generated Args/Returns/Raises boilerplate. The '**kwargs: Additional parameters for the request' line is vague and does not correspond to the enumerated schema properties, so it consumes space without informing.

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 10-parameter mutation tool with no output schema and no parameter documentation, this description is too thin. The error taxonomy is helpful, but an agent still lacks the information needed to know when the tool is applicable or how to populate most of its arguments.

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 description coverage is 0% across 10 parameters, so the description must carry the burden and does not. It names only project_id and job_id (usefully clarifying they are mandatory), while page, per_page, max_pages, total_pages, scope, pipeline_id, include_retried, and job_variable_attributes are entirely unexplained — and the pagination-style parameters look incongruous for a 'run job' action without any clarification.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb and resource ('Run a specific job within a project'), which is enough to identify the domain. However, 'run' is ambiguous in GitLab terms (playing a manual job vs. otherwise triggering it) and it never distinguishes itself from close siblings such as gitlab_retry_project_job, gitlab_cancel_project_job, or gitlab_erase_project_job. An agent cannot confidently pick this tool over those from the text alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., that the job should be in a manual/playable state), and no reference to alternatives. The only conditional information is about error raising, which is about failure modes rather than tool selection.

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