Webhooks

June 3, 2026 ยท View on GitHub

List webhooks configured on projects or groups, and inspect recent webhook events.

!!! note "Feature toggle" Opt-in. Enable via GITLAB_TOOLSETS=webhooks (or GITLAB_TOOLSETS=all), list individual tools in GITLAB_TOOLS=, or activate at runtime with the discover_tools MCP tool.

Tools in this group


list_webhooks

๐Ÿ“– Read-only

List webhooks for a project or group

Parameters

ParameterTypeRequiredDescription
project_idstringProject ID or URL-encoded path. Provide either project_id or group_id, not both.
group_idstringGroup ID or URL-encoded path. Provide either project_id or group_id, not both.
pagenumberPage number for pagination (default: 1)
per_pagenumberNumber of items per page (max: 100, default: 20)

list_webhook_events

๐Ÿ“– Read-only

List recent webhook events (past 7 days)

Parameters

ParameterTypeRequiredDescription
project_idstringProject ID or URL-encoded path. Provide either project_id or group_id, not both.
group_idstringGroup ID or URL-encoded path. Provide either project_id or group_id, not both.
hook_idnumberโœ“ID of the webhook
statusnumber | stringFilter by response status code (e.g. 200, 500) or category: successful, client_failure, server_failure
summarybooleanIf true, return only summary fields (id, url, trigger, response_status, execution_duration) without full request/response payloads. Recommended for overview queries to avoid huge responses.
per_pagenumberNumber of events per page
pagenumberPage number for pagination

get_webhook_event

๐Ÿ“– Read-only

Get full details of a specific webhook event

Parameters

ParameterTypeRequiredDescription
project_idstringProject ID or URL-encoded path. Provide either project_id or group_id, not both.
group_idstringGroup ID or URL-encoded path. Provide either project_id or group_id, not both.
hook_idnumberโœ“ID of the webhook
event_idnumberโœ“ID of the webhook event to retrieve
pagenumberIf known, the page where the event is located (from list_webhook_events). Skips auto-pagination and fetches only this page.