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

NameTypeDescription
organization_id_or_slug requiredstringThe ID or slug of the organization the resource belongs to.
field requiredarrayThe list of fields to query. The available fields are - sum(session)…
startstringThe start of the period of time for the query, expected in ISO-8601 format.…
endstringThe end of the period of time for the query, expected in ISO-8601 format. For…
environmentarrayThe name of environments to filter by.
statsPeriodstringThe period of time for the query, will override the start & end parameters, a…
projectarrayThe IDs or slugs of projects to filter by. Project slugs are unique within…
per_pageintegerThe number of groups to return per request.
intervalstringResolution of the time series, given in the same format as statsPeriod. The…
groupByarrayThe list of properties to group by. The available groupBy conditions are…
orderBystringAn optional field to order by, which must be one of the fields provided in…
includeTotalsintegerSpecify 0 to exclude totals from the response. The default is 1
includeSeriesintegerSpecify 0 to exclude series from the response. The default is 1
querystringFilters 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:

call_tool arguments
{
  "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:

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 release health session statistics tool with organization_id_or_slug set to ….

More from Sentry API