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
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The ID or URL-encoded path of the project | |
| webhook_id | Yes | The 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); };
- src/utils/tools-data.ts:451-468 (schema)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'] } },
- src/utils/tool-registry.ts:46-46 (registration)The registration of the gitlab_delete_webhook tool mapping to the deleteWebhook handler function.gitlab_delete_webhook: integrationHandlers.deleteWebhook,