Home / Servers / Sentry API / create_organization_project_detector

Create a Monitor for a Project

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

Create a Monitor for a Project [POST /api/0/organizations/{organization_id_or_slug}/projects/{project_id_or_slug}/detectors/]

Name on the gateway: sentry_api__create_organization_project_detector · may change things.

Parameters

NameTypeDescription
organization_id_or_slug requiredstringThe ID or slug of the organization the resource belongs to.
project_id_or_slug requiredstringThe ID or slug of the project the resource belongs to.…
name requiredstringName of the monitor.
type requiredstringThe type of monitor - metric_issue.
workflowIdsarrayThe IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts'…
dataSourcesarrayThe data sources for the metric monitor to use based on what you want to…
configobjectThe issue detection type configuration. - detectionType - static: Threshold…
conditionGroupobjectIssue detection configuration for when to create an issue and at what priority…
ownerstringThe ID user or team who owns the monitor or alert prefaced by the string…
descriptionstringA description of the monitor. Will be used in the resulting issue.
enabledbooleanSet to False if you want to disable the monitor.

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__create_organization_project_detector",
  "arguments": {
    "organization_id_or_slug": "…",
    "project_id_or_slug": "…",
    "name": "…",
    "type": "…"
  }
}

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 create a monitor for a project tool with organization_id_or_slug set to ….

More from Sentry API