Home / Servers / Sentry API / create_a_custom_inbound_filter

**Experimental:** This API is under active development and may change.

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

**Experimental:** This API is under active development and may change. Create a custom inbound filter for a project. [POST /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/]

Name on the gateway: sentry_api__create_a_custom_inbound_filter · 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.…
id requiredstringThe ID of the filter.
dataType requiredall | error | log | metric | spanThe data the filter matches against. all is the catch-all: it filters every…
conditions requiredarrayConditions are combined with AND: an event must match every condition to be…
dateCreated requiredstringWhen the filter was created.
dateUpdated requiredstringWhen the filter was last changed.
legacyFilter requiredstringSet on a filter that holds one of the filter lists of the project settings, to…
namestringA human-readable label for the filter.
activebooleanWhether the filter drops matching data. An inactive filter is kept but ignored.

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_a_custom_inbound_filter",
  "arguments": {
    "organization_id_or_slug": "…",
    "project_id_or_slug": "…",
    "id": "…",
    "dataType": "…",
    "conditions": [],
    "dateCreated": "…",
    "dateUpdated": "…",
    "legacyFilter": "…"
  }
}

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 **experimental:** this api is under active development and may change. tool with organization_id_or_slug set to ….

More from Sentry API