gitlab_cancel_pipeline
Cancel a running GitLab pipeline to stop stuck or unwanted work and interrupt in-flight jobs. Use it only on active pipelines; finished pipelines are unaffected.
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.
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": {
"pipeline_id": "<pipeline_id>",
"project_path": "<project_path>"
},
"name": "gitlab_cancel_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipeline_id | Yes | Pipeline ID to cancel. | |
| project_path | Yes | GitLab project path (e.g. 'my-org/my-repo'). Required by default. For legacy deployments only, set GITLAB_ALLOW_DEFAULT_PROJECT=true to use GITLAB_PROJECT_PATH when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| status | No | ||
| web_url | No | ||
| created_at | No | ||
| pipeline_id | No | ||
| status_note | No |