Skip to main content
Glama

gitlab_list_trigger_tokens

Retrieve pipeline trigger tokens for a specified GitLab project by providing its ID or URL-encoded path. Use this tool to manage and monitor CI/CD pipeline triggers effectively.

Instructions

List pipeline trigger tokens

Input Schema

NameRequiredDescriptionDefault
project_idYesThe ID or URL-encoded path of the project

Input Schema (JSON Schema)

{ "properties": { "project_id": { "description": "The ID or URL-encoded path of the project", "type": "string" } }, "required": [ "project_id" ], "type": "object" }

Implementation Reference

  • The main handler function for the gitlab_list_trigger_tokens tool. It validates the project_id parameter and calls context.ciCdManager.listTriggerTokens to fetch the list of pipeline trigger tokens, then formats the response.
    export const listTriggerTokens: ToolHandler = async (params, context) => { const { project_id } = params.arguments || {}; if (!project_id) { throw new McpError(ErrorCode.InvalidParams, 'project_id is required'); } const data = await context.ciCdManager.listTriggerTokens(project_id as string | number); return formatResponse(data); };
  • The input schema definition for the gitlab_list_trigger_tokens tool, specifying the required project_id parameter.
    { name: 'gitlab_list_trigger_tokens', description: 'List pipeline trigger tokens', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'The ID or URL-encoded path of the project' } }, required: ['project_id'] } },
  • Registration of the gitlab_list_trigger_tokens tool in the tool registry, mapping the tool name to its handler function cicdHandlers.listTriggerTokens.
    gitlab_list_trigger_tokens: cicdHandlers.listTriggerTokens,

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

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