Home / Servers / PagerDuty API / get_analytics_metrics_incidents_all
Get aggregated incident data
An MCP tool from the PagerDuty API server, hosted on mcp.hjlabs.in.
Get aggregated incident data Provides aggregated enriched metrics for incidents. The provided metrics are aggregated by day, week, month using the aggregate_unit parameter, or for the entire period if no aggregate_unit is… [POST /analytics/metrics/incidents/all]
Name on the gateway: pagerduty_api__get_analytics_metrics_incidents_all · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
filters | object | Accepts a set of filters to apply to the Incidents before aggregating. Any… |
time_zone | string | The time zone to use for the results and grouping. Must be in tzdata format.… |
order | asc | desc | The order in which the results were sorted; asc for ascending, desc for… |
order_by | string | The column that was used for ordering the results. |
aggregate_unit | day | week | month | The time unit to aggregate metrics by. If no value is provided, the metrics… |
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": "pagerduty_api__get_analytics_metrics_incidents_all",
"arguments": {}
}Or connect the PagerDuty API server directly, which lists 459 tools including this one:
claude mcp add --transport http hj-pagerduty-api https://mcp.hjlabs.in/mcp/pagerduty-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the get aggregated incident data tool with filters set to ….