Skip to main content
Glama

gitlab_delete_webhook

Remove a specific webhook from a GitLab project by specifying the project ID and webhook ID using the GitLab MCP Server.

Instructions

Delete a webhook

Input Schema

NameRequiredDescriptionDefault
project_idYesThe ID or URL-encoded path of the project
webhook_idYesThe ID of the webhook

Input Schema (JSON Schema)

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

Implementation Reference

  • The core handler function that implements the gitlab_delete_webhook tool logic by calling integrationsManager.deleteWebhook.
    export const deleteWebhook: ToolHandler = async (params, context) => { const { project_id, webhook_id } = params.arguments || {}; if (!project_id || !webhook_id) { throw new McpError(ErrorCode.InvalidParams, 'project_id and webhook_id are required'); } const data = await context.integrationsManager.deleteWebhook(project_id as string | number, webhook_id as number); return formatResponse(data); };
  • The input schema definition for the gitlab_delete_webhook tool, specifying parameters project_id and webhook_id.
    { name: 'gitlab_delete_webhook', description: 'Delete a webhook', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'The ID or URL-encoded path of the project' }, webhook_id: { type: 'number', description: 'The ID of the webhook' } }, required: ['project_id', 'webhook_id'] } },
  • The registration of the gitlab_delete_webhook tool mapping to the deleteWebhook handler function.
    gitlab_delete_webhook: integrationHandlers.deleteWebhook,

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