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
| Name | Type | Description |
|---|---|---|
organization_id_or_slug required | string | The ID or slug of the organization the resource belongs to. |
query required | string | Filters results by using query syntax. Example: query=(transaction:foo AND… |
data_source required | errors | search_issues | spans | The data source to query replays from. * errors * search_issues * spans |
environment | array | The name of environments to filter by. |
start | string | The start of the period of time for the query, expected in ISO-8601 format.… |
end | string | The end of the period of time for the query, expected in ISO-8601 format. For… |
statsPeriod | string | The period of time for the query, will override the start & end parameters, a… |
project | array | The IDs or slugs of projects to filter by. Project slugs are unique within… |
project_id_or_slug | array | The legacy project slug filter. Prefer project, which accepts project IDs or… |
returnIds | boolean | If 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:
{
"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:
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 ….