Home / Servers / Sentry API / get_organization_replay_count

Retrieve a Count of Replays for a Given Issue or Transaction

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

Retrieve a Count of Replays for a Given Issue or Transaction Return a count of replays for a list of issue or transaction IDs. The query parameter is required. It is a search query that includes exactly one of issue.id, transaction, or replay_id (string or… [GET /api/0/organizations/{organization_id_or_slug}/replay-count/]

Name on the gateway: sentry_api__get_organization_replay_count · read-only.

Parameters

NameTypeDescription
organization_id_or_slug requiredstringThe ID or slug of the organization the resource belongs to.
query requiredstringFilters results by using query syntax. Example: query=(transaction:foo AND…
data_source requirederrors | search_issues | spansThe data source to query replays from. * errors * search_issues * spans
environmentarrayThe name of environments to filter by.
startstringThe start of the period of time for the query, expected in ISO-8601 format.…
endstringThe end of the period of time for the query, expected in ISO-8601 format. For…
statsPeriodstringThe period of time for the query, will override the start & end parameters, a…
projectarrayThe IDs or slugs of projects to filter by. Project slugs are unique within…
project_id_or_slugarrayThe legacy project slug filter. Prefer project, which accepts project IDs or…
returnIdsbooleanIf true, return issue IDs rather than counts.

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__get_organization_replay_count",
  "arguments": {
    "organization_id_or_slug": "…",
    "query": "…",
    "data_source": "…"
  }
}

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 retrieve a count of replays for a given issue or transaction tool with organization_id_or_slug set to ….

More from Sentry API