Home / Servers / Sentry API / get_organization_stats_summary

Retrieve an Organization's Events Count by Project

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

Retrieve an Organization's Events Count by Project Query summarized event counts by project for your Organization. Also see https://docs.sentry.io/api/organizations/retrieve-event-counts-for-an-organization-v2/ for reference. [GET /api/0/organizations/{organization_id_or_slug}/stats-summary/]

Name on the gateway: sentry_api__get_organization_stats_summary · read-only.

Parameters

NameTypeDescription
organization_id_or_slug requiredstringThe ID or slug of the organization the resource belongs to.
field requiredsum(quantity) | sum(times_seen)the sum(quantity) field is bytes for attachments, and all others the 'event'…
statsPeriodstringThis defines the range of the time series, relative to now. The range is given…
intervalstringThis is the resolution of the time series, given in the same format as…
startstringThis defines the start of the time series range as an explicit datetime…
endstringThis defines the inclusive end of the time series range as an explicit…
projectarrayThe ID of the projects to filter by.
categoryerror | transaction | attachment | replays | profilesIf filtering by attachments, you cannot filter by any other category due to…
outcomeaccepted | filtered | rate_limited | invalid | abuse | client_discard | cardinality_limitedSee https://docs.sentry.io/product/stats/ for more information on outcome…
reasonstringThe reason field will contain why an event was filtered/dropped.
downloadbooleanDownload the API response in as a csv file

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

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 an organization's events count by project tool with organization_id_or_slug set to ….

More from Sentry API