Skip to main content
Glama

gitlab_delete_trigger_token

Remove a pipeline trigger token from a GitLab project by specifying the project ID and trigger ID using the GitLab MCP Server.

Instructions

Delete a pipeline trigger token

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe ID or URL-encoded path of the project
trigger_idYesThe ID of the trigger

Implementation Reference

  • Handler function that validates parameters, calls ciCdManager.deleteTriggerToken to delete the trigger token, and returns formatted response.
     */
    export const deleteTriggerToken: ToolHandler = async (params, context) => {
      const { project_id, trigger_id } = params.arguments || {};
      if (!project_id || !trigger_id) {
        throw new McpError(ErrorCode.InvalidParams, 'project_id and trigger_id are required');
      }
      
      const data = await context.ciCdManager.deleteTriggerToken(project_id as string | number, trigger_id as number);
      return formatResponse(data);
    };
    
    /**
  • Input schema definition specifying required project_id and trigger_id parameters for the tool.
    {
      name: 'gitlab_delete_trigger_token',
      description: 'Delete a pipeline trigger token',
      inputSchema: {
        type: 'object',
        properties: {
          project_id: {
            type: 'string',
            description: 'The ID or URL-encoded path of the project'
          },
          trigger_id: {
            type: 'number',
            description: 'The ID of the trigger'
          }
        },
        required: ['project_id', 'trigger_id']
      }
    },
  • Tool registration mapping 'gitlab_delete_trigger_token' to the cicdHandlers.deleteTriggerToken function.
    gitlab_delete_trigger_token: cicdHandlers.deleteTriggerToken,

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