Skip to main content
Glama
Alosies
by Alosies

retry_pipeline

Restart a failed GitLab pipeline by specifying the project and pipeline ID to re-execute the build process.

Instructions

Retry a failed pipeline

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pipeline_idYesPipeline ID
project_idYesProject ID or path

Implementation Reference

  • The `retryPipeline` method in the PipelineHandlers class that implements the core logic of the retry_pipeline tool. It sends a POST request to GitLab's pipeline retry endpoint and returns the response as formatted JSON.
    async retryPipeline(args: PipelineActionParams) { const data = await this.client.post(`/projects/${encodeURIComponent(args.project_id)}/pipelines/${args.pipeline_id}/retry`); return { content: [ { type: 'text', text: JSON.stringify(data, null, 2), }, ], }; }
  • The tool specification for 'retry_pipeline' defining its name, description, and input schema (project_id and pipeline_id required). This is part of the exported pipelineTools array used for tool listing.
    { name: 'retry_pipeline', description: 'Retry a failed 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:299-302 (registration)
    Dispatch logic in the MCP server's CallToolRequest handler that routes calls to the 'retry_pipeline' tool to the corresponding PipelineHandlers method.
    case "retry_pipeline": return await this.pipelineHandlers.retryPipeline( 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