Skip to main content
Glama

gitlab_get_webhook

Retrieve detailed information about a specific webhook within a GitLab project by providing the project ID and webhook ID. Simplify webhook management and tracking.

Instructions

Get details of a specific webhook

Input Schema

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

Implementation Reference

  • The main handler function that executes the gitlab_get_webhook tool logic by fetching the webhook details via integrationsManager and formatting the response.
     * Get webhook handler
     */
    export const getWebhook: 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.getWebhook(project_id as string | number, webhook_id as number);
      return formatResponse(data);
    };
  • The input schema definition specifying parameters for the gitlab_get_webhook tool.
    {
      name: 'gitlab_get_webhook',
      description: 'Get details of a specific 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']
      }
    },
  • Maps the tool name 'gitlab_get_webhook' to its handler function in the central tool registry.
    gitlab_get_webhook: integrationHandlers.getWebhook,

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