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

NameTypeDescription
filtersobjectAccepts a set of filters to apply to the Incidents before aggregating. Any…
time_zonestringThe time zone to use for the results and grouping. Must be in tzdata format.…
orderasc | descThe order in which the results were sorted; asc for ascending, desc for…
order_bystringThe column that was used for ordering the results.
aggregate_unitday | week | monthThe 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:

call_tool arguments
{
  "name": "pagerduty_api__get_analytics_metrics_incidents_all",
  "arguments": {}
}

Or connect the PagerDuty API server directly, which lists 459 tools including this one:

Run in your terminal
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 ….

More from PagerDuty API