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

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 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