Skip to main content
Glama
Alosies
by Alosies

delete_pipeline

Remove a specific pipeline from a GitLab project using the project ID and pipeline ID to clean up or cancel unwanted pipeline executions.

Instructions

Delete a pipeline

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pipeline_idYesPipeline ID
project_idYesProject ID or path

Implementation Reference

  • The core handler function that executes the delete_pipeline tool by calling the GitLab DELETE API endpoint for pipelines and returning success or response data.
    async deletePipeline(args: PipelineActionParams) { const response = await this.client.delete(`/projects/${encodeURIComponent(args.project_id)}/pipelines/${args.pipeline_id}`); return { content: [ { type: 'text', text: response.status === 204 ? 'Pipeline deleted successfully' : JSON.stringify(response.data, null, 2), }, ], }; }
  • Tool definition including name, description, and input schema for the delete_pipeline tool, exported as part of pipelineTools array.
    { name: 'delete_pipeline', description: 'Delete a pipeline', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID or path', }, pipeline_id: { type: 'number', description: 'Pipeline ID', }, }, required: ['project_id', 'pipeline_id'], }, },
  • src/server.ts:307-310 (registration)
    Switch case in tool call handler that routes 'delete_pipeline' calls to the PipelineHandlers.deletePipeline method.
    case "delete_pipeline": return await this.pipelineHandlers.deletePipeline( args as unknown as PipelineActionParams );

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/Alosies/gitlab-mcp-server'

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