Skip to main content
Glama

gitlab_update_trigger_token

Modify a pipeline trigger token's description in a GitLab project by specifying the project ID and trigger ID. Essential for updating trigger details in CI/CD workflows.

Instructions

Update a pipeline trigger token

Input Schema

NameRequiredDescriptionDefault
descriptionYesThe new trigger description
project_idYesThe ID or URL-encoded path of the project
trigger_idYesThe ID of the trigger

Input Schema (JSON Schema)

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

Implementation Reference

  • The main handler function that executes the gitlab_update_trigger_token tool logic. It validates input parameters (project_id, trigger_id required; description optional) and delegates to the ciCdManager.updateTriggerToken method.
    export const updateTriggerToken: ToolHandler = async (params, context) => { const { project_id, trigger_id, description } = params.arguments || {}; if (!project_id || !trigger_id) { throw new McpError(ErrorCode.InvalidParams, 'project_id and trigger_id are required'); } const data = await context.ciCdManager.updateTriggerToken(project_id as string | number, trigger_id as number, description as string); return formatResponse(data); };
  • JSON schema defining the input parameters for the gitlab_update_trigger_token tool: project_id (string, required), trigger_id (number, required), description (string, required). Note: handler makes description optional.
    { name: 'gitlab_update_trigger_token', description: 'Update 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' }, description: { type: 'string', description: 'The new trigger description' } }, required: ['project_id', 'trigger_id', 'description'] }
  • Maps the tool name 'gitlab_update_trigger_token' to its handler function cicdHandlers.updateTriggerToken in the central tool registry.
    gitlab_update_trigger_token: cicdHandlers.updateTriggerToken,

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