Skip to main content
Glama

gitlab_cancel_pipeline

DestructiveIdempotent

Cancel running GitLab CI/CD pipelines to interrupt stuck or unnecessary jobs, preventing wasted resources on in-progress work.

Instructions

Cancel a running pipeline. In-flight jobs will be interrupted.

Destructive for in-progress work. Cancelling an already-finished pipeline is a no-op.

Examples: - "Pipeline 123 is stuck, cancel it" → pipeline_id=123 - Don't use on finished pipelines — no effect; use gitlab_retry_pipeline if you want to rerun it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pipeline_idYesPipeline ID to cancel.
project_pathNoGitLab project path (e.g. 'my-org/my-repo'). When omitted, the default from GITLAB_PROJECT_PATH env var is used.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pipeline_idNo
statusNo
web_urlNo
refNo
created_atNo
status_noteNo
Behavior4/5

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

The description adds valuable behavioral context beyond annotations: it specifies that 'in-flight jobs will be interrupted' and clarifies that cancelling a finished pipeline is a 'no-op'. While annotations already indicate destructiveHint=true and idempotentHint=true, the description provides concrete operational details that enhance understanding without contradicting annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with clear sections: a purpose statement, behavioral details, and practical examples. Every sentence adds value without redundancy, and information is front-loaded with the core action first, followed by important qualifications.

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?

Given the tool's destructive nature and the presence of annotations and output schema, the description provides complete contextual information. It covers purpose, behavioral consequences, usage guidelines, and examples, making it fully sufficient for an agent to understand when and how to invoke this tool appropriately.

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?

With 100% schema description coverage, the schema already fully documents both parameters. The description doesn't add significant parameter semantics beyond what's in the schema (e.g., it doesn't explain pipeline_id format or project_path resolution details). However, the examples provide context for how pipeline_id is used in practice.

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 description clearly states the specific action ('Cancel a running pipeline') and resource ('pipeline'), distinguishing it from siblings like gitlab_retry_pipeline. It explicitly mentions the effect on 'in-flight jobs' and provides concrete examples of when to use it, making the purpose unambiguous and well-differentiated.

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?

The description provides explicit guidance on when to use this tool ('Pipeline 123 is stuck, cancel it') and when not to ('Don't use on finished pipelines'), including a clear alternative ('use gitlab_retry_pipeline if you want to rerun it'). This directly addresses sibling tool differentiation and usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mshegolev/gitlab-ci-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server