gitlab_list_webhooks
Retrieve all webhooks associated with a specific GitLab project by providing its ID or URL-encoded path. Use this tool to monitor and manage project integrations effectively.
Instructions
List webhooks for a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The 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 core handler function for the gitlab_list_webhooks tool. It validates the project_id parameter and calls the integrationsManager to list webhooks, then formats the response.export const listWebhooks: 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.integrationsManager.listWebhooks(project_id as string | number); return formatResponse(data); };
- src/utils/tools-data.ts:339-352 (schema)The input schema definition for the gitlab_list_webhooks tool, specifying the required project_id parameter.{ name: 'gitlab_list_webhooks', description: 'List webhooks for a project', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'The ID or URL-encoded path of the project' } }, required: ['project_id'] } },
- src/utils/tool-registry.ts:42-42 (registration)Registration of the gitlab_list_webhooks tool in the central tool registry, mapping the tool name to its handler function.gitlab_list_webhooks: integrationHandlers.listWebhooks,