Skip to main content
Glama

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

NameRequiredDescriptionDefault
project_idYesThe 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); };
  • 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'] } },
  • 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,

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