Home / Servers / Sentry API / register_a_new_service_hook

Register a new service hook on a project.

An MCP tool from the Sentry API server, hosted on mcp.hjlabs.in.

Register a new service hook on a project. Events include: - event.alert: An alert is generated for an event (via rules). - event.created: A new event has been processed. This endpoint requires the 'servicehooks' feature to be enabled for… [POST /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/]

Name on the gateway: sentry_api__register_a_new_service_hook · may change things.

Parameters

NameTypeDescription
organization_id_or_slug requiredstringThe ID or slug of the organization the client keys belong…
project_id_or_slug requiredstringThe ID or slug of the project the client keys belong to.
url requiredstringThe URL for the webhook.
events requiredarrayThe events to subscribe to.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "sentry_api__register_a_new_service_hook",
  "arguments": {
    "organization_id_or_slug": "…",
    "project_id_or_slug": "…",
    "url": "…",
    "events": []
  }
}

Or connect the Sentry API server directly, which lists 272 tools including this one:

Run in your terminal
claude mcp add --transport http hj-sentry-api https://mcp.hjlabs.in/mcp/sentry-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the register a new service hook on a project. tool with organization_id_or_slug set to ….

More from Sentry API