Skip to main content
Glama
Alosies
by Alosies

delete_pipeline

Remove a specific pipeline from a GitLab project by providing the project ID and pipeline ID.

Instructions

Delete a pipeline

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID or path
pipeline_idYesPipeline ID

Implementation Reference

  • The core handler function that performs the DELETE request to the GitLab API to delete the specified pipeline and returns a success message or the 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 schema definition including name, description, and input schema for validating arguments (project_id and pipeline_id).
    { 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-309 (registration)
    Registration in the tool dispatch switch statement that maps the 'delete_pipeline' tool name to the handler method call.
    case "delete_pipeline": return await this.pipelineHandlers.deletePipeline( args as unknown as PipelineActionParams
  • src/server.ts:141-143 (registration)
    Tool list registration via allTools array, which includes the delete_pipeline tool from pipelines.ts, served in response to ListTools requests.
    return { tools: allTools, };

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