Home / Servers / Sentry API / list_project_stats

Retrieve Event Counts for a Project

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

Retrieve Event Counts for a Project Return a set of points representing a normalized timestamp and the number of events seen in the period. Query ranges are limited to Sentry's configured time-series resolutions. This endpoint may… [GET /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/stats/]

Name on the gateway: sentry_api__list_project_stats · read-only.

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.…
statblacklisted | generated | received | rejectedThe name of the stat to query. Defaults to received.
sincenumberA UNIX timestamp (in seconds) that sets the start of the query range.
untilnumberA UNIX timestamp (in seconds) that sets the end of the query range.
resolution10s | 1d | 1hAn explicit time series resolution.

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

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

More from Sentry API