get_incidents
Retrieve PagerDuty incidents by status, urgency, service, team, or date range, or fetch details for a specific incident ID or number.
Instructions
Get PagerDuty incidents by filters or get details for a specific incident ID or number.
Call patterns:
List my/team incidents: omit ID filters (default
current_user_context=True).List by service/team: pass
service_idsand/orteam_ids(impliescurrent_user_context=False, including overriding an explicit True). Do not also setinclude_notes/include_past_incidents/include_related_incidentson this list call.Detail + notes: second call with only
incident_id(and optional include_* flags).Account-wide list:
all_visible=Truealone (not scoped to the current user).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_incidents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (optional). Not used if `incident_id` is provided. | |
| since | No | Start of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided. | |
| until | No | End of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided. | |
| include | No | List of fields to include in the response. If specified, only these fields will be returned for each incident | |
| statuses | No | Filter by status (optional). Not used if `incident_id` is provided. Must be input as a list of strings, valid values are `["triggered", "acknowledged", "resolved"]`. Defaults to all statuses. | |
| team_ids | No | Filter by teams (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Cannot be combined with `all_visible`. Not used if `incident_id` is provided. | |
| urgencies | No | Filter by urgency (optional). Not used if `incident_id` is provided. Must be input as a list of strings, valid values are `["high", "low"]`. Defaults to all urgencies. Account must have the urgencies ability to do this. | |
| all_visible | No | If True, list incidents across the whole account that the API token can see, with no team/service filter. These are not scoped to the current user; use only when account-wide incidents are wanted. Implies `current_user_context=False`. Cannot be combined with `service_ids` or `team_ids`. Not used if `incident_id` is provided. | |
| incident_id | No | The incident ID or number to retrieve (optional, cannot be used with any other filters). | |
| service_ids | No | Filter by services (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Cannot be combined with `all_visible`. Not used if `incident_id` is provided. | |
| include_notes | No | Only with `incident_id`. If True, includes notes for that incident. Defaults to False. Never set on list calls (list first, then call again with `incident_id`). | |
| current_user_context | No | Filter by current user's context (default: True); errors if the current user belongs to no teams. Ignored when `all_visible` is True or when `service_ids`/`team_ids` are provided (those imply False, even if this is explicitly True). Not used if `incident_id` is provided. | |
| include_past_incidents | No | Only with `incident_id`. If True, includes similar past incidents. Defaults to False. Never set on list calls. | |
| include_related_incidents | No | Only with `incident_id`. If True, includes related incidents. Defaults to False. Never set on list calls. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||