Home / Servers / Sentry API / get_organization_sessions
Retrieve Release Health Session Statistics
An MCP tool from the Sentry API server, hosted on mcp.hjlabs.in.
Retrieve Release Health Session Statistics Returns a time series of release health session statistics for projects bound to an organization. The interval and date range are subject to certain restrictions and rounding rules. The date range… [GET /api/0/organizations/{organization_id_or_slug}/sessions/]
Name on the gateway: sentry_api__get_organization_sessions · 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 | array | The list of fields to query. The available fields are - sum(session)… |
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… |
environment | array | The name of environments to filter by. |
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… |
per_page | integer | The number of groups to return per request. |
interval | string | Resolution of the time series, given in the same format as statsPeriod. The… |
groupBy | array | The list of properties to group by. The available groupBy conditions are… |
orderBy | string | An optional field to order by, which must be one of the fields provided in… |
includeTotals | integer | Specify 0 to exclude totals from the response. The default is 1 |
includeSeries | integer | Specify 0 to exclude series from the response. The default is 1 |
query | string | Filters results by using query syntax. Example: query=(transaction:foo AND… |
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_sessions",
"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 release health session statistics tool with organization_id_or_slug set to ….