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
| Name | Type | Description |
|---|---|---|
organization_id_or_slug required | string | The ID or slug of the organization the resource belongs to. |
field required | sum(quantity) | sum(times_seen) | the sum(quantity) field is bytes for attachments, and all others the 'event'… |
statsPeriod | string | This defines the range of the time series, relative to now. The range is given… |
interval | string | This is the resolution of the time series, given in the same format as… |
start | string | This defines the start of the time series range as an explicit datetime… |
end | string | This defines the inclusive end of the time series range as an explicit… |
project | array | The ID of the projects to filter by. |
category | error | transaction | attachment | replays | profiles | If filtering by attachments, you cannot filter by any other category due to… |
outcome | accepted | filtered | rate_limited | invalid | abuse | client_discard | cardinality_limited | See https://docs.sentry.io/product/stats/ for more information on outcome… |
reason | string | The reason field will contain why an event was filtered/dropped. |
download | boolean | Download 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:
{
"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:
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 ….