Skip to main content
Glama

Erase project job

gitlab_erase_project_job
Destructive

Erases a specific GitLab project job by project ID and job ID, enabling targeted removal of unwanted or failed CI/CD jobs.

Instructions

Erase 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_erase_project_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
scopeNo
job_idNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
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.26
    • addedInput schema / properties / confirm
      Added value: +{
      +  "default": false,
      +  "description": "Explicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv27.3.20
    • removedInput schema / properties / api_parameters
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
  3. First observedv27.3.13

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered. The description adds error-raising behavior (MissingParameterError, ParameterError) and the return shape (a wrapper containing the original response and a Job model), but does not say what data is actually destroyed (logs, artifacts, variables) or that confirmation may be required — even though the schema exposes a `confirm` flag.

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 lead sentence is short and front-loaded, but the body is raw docstring boilerplate (Args/Returns/Raises) whose Args entry is the uninformative "Additional parameters for the request". It is not bloated, but several sentences do not earn their place.

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 destructive 11-parameter operation with no output schema and near-zero schema coverage, the definition leaves critical gaps: it never mentions the `confirm` parameter, never explains why list-shaped parameters (page, per_page, max_pages, scope, include_retried) appear on an erase call, and gives no indication of permissions needed or irreversibility.

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 only 9% across 11 parameters, so the description must compensate and does not. It mentions only project_id and job_id (and then only in the Raises block); the remaining nine parameters — including `confirm`, which governs whether a destructive call proceeds — are never explained, and the `**kwargs` line is a vague catch-all that adds no meaning.

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?

The first sentence names a specific verb ("Erase") and resource ("a specific job within a project"), which is clearly distinct from sibling operations like gitlab_cancel_project_job or gitlab_retry_project_job. It stops short of explicitly contrasting with those siblings, but the destructive verb choice carries the distinction.

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 statement of when to use this rather than cancel_project_job, retry_project_job, or get_project_job, and no prerequisites or warnings about the permanence of the operation. The agent must infer usage entirely from the word "Erase".

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