Skip to main content
Glama
Alosies
by Alosies

get_pipeline

Retrieve detailed information about a specific GitLab pipeline by providing the project ID and pipeline ID. This tool helps users monitor pipeline status, view execution details, and track CI/CD progress within GitLab projects.

Instructions

Get details of a specific pipeline

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID or path
pipeline_idYesPipeline ID

Implementation Reference

  • The main handler function that executes the get_pipeline tool by fetching pipeline details from the GitLab API using the provided project_id and pipeline_id, then returning the JSON response.
    async getPipeline(args: GetPipelineParams) { const data = await this.client.get(`/projects/${encodeURIComponent(args.project_id)}/pipelines/${args.pipeline_id}`); return { content: [ { type: 'text', text: JSON.stringify(data, null, 2), }, ], }; }
  • MCP tool registration in the pipelineTools array, defining the tool name, description, and input schema.
    { name: 'get_pipeline', description: 'Get details of a specific 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'], }, },
  • TypeScript interface defining the input parameters (project_id and pipeline_id) used by the get_pipeline handler.
    export interface GetPipelineParams { project_id: string; pipeline_id: number; }

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