Skip to main content
Glama
PagerDuty MCP Server

PagerDuty MCP Server

by wpfleger96

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_ids and/or team_ids (implies current_user_context=False, including overriding an explicit True). Do not also set include_notes / include_past_incidents / include_related_incidents on this list call.

  • Detail + notes: second call with only incident_id (and optional include_* flags).

  • Account-wide list: all_visible=True alone (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

NameRequiredDescriptionDefault
limitNoMax results (optional). Not used if `incident_id` is provided.
sinceNoStart of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided.
untilNoEnd of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided.
includeNoList of fields to include in the response. If specified, only these fields will be returned for each incident
statusesNoFilter 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_idsNoFilter 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.
urgenciesNoFilter 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_visibleNoIf 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_idNoThe incident ID or number to retrieve (optional, cannot be used with any other filters).
service_idsNoFilter 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_notesNoOnly 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_contextNoFilter 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_incidentsNoOnly with `incident_id`. If True, includes similar past incidents. Defaults to False. Never set on list calls.
include_related_incidentsNoOnly with `incident_id`. If True, includes related incidents. Defaults to False. Never set on list calls.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv4.1.1
    • changedInput schema / properties / current_user_context / description
      Previous value: -"Filter by current user's context (default: True); errors if the current user belongs to no teams. Ignored when `all_visible` is True. Not used if `incident_id` is provided."New value: +"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."
    • changedInput schema / properties / include_notes / description
      Previous value: -"If True, includes notes for each incident in the response. Defaults to False."New value: +"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`)."
    • changedInput schema / properties / include_past_incidents / description
      Previous value: -"If True and `incident_id` is provided, includes similar past incidents in the response. Defaults to False. Cannot be used without `incident_id`."New value: +"Only with `incident_id`. If True, includes similar past incidents. Defaults to False. Never set on list calls."
    • changedInput schema / properties / include_related_incidents / description
      Previous value: -"If True and `incident_id` is provided, includes related incidents impacting other services/responders in the response. Defaults to False. Cannot be used without `incident_id`."New value: +"Only with `incident_id`. If True, includes related incidents. Defaults to False. Never set on list calls."
    • changedInput schema / properties / service_ids / description
      Previous value: -"Filter by services (optional, excludes current_user_context / all_visible). Not used if `incident_id` is provided."New value: +"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."
    • changedInput schema / properties / team_ids / description
      Previous value: -"Filter by teams (optional, excludes current_user_context / all_visible). Not used if `incident_id` is provided."New value: +"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."
  2. Changed4 schema fields changedv4.1.0
    • addedInput schema / properties / all_visible
      Added value: +{
      +  "default": false,
      +  "description": "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.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / current_user_context / description
      Previous value: -"Filter by current user's context (default: True); errors if the current user belongs to no teams. Not used if `incident_id` is provided."New value: +"Filter by current user's context (default: True); errors if the current user belongs to no teams. Ignored when `all_visible` is True. Not used if `incident_id` is provided."
    • changedInput schema / properties / service_ids / description
      Previous value: -"Filter by services (optional, excludes current_user_context). Not used if `incident_id` is provided."New value: +"Filter by services (optional, excludes current_user_context / all_visible). Not used if `incident_id` is provided."
    • changedInput schema / properties / team_ids / description
      Previous value: -"Filter by teams (optional, excludes current_user_context). Not used if `incident_id` is provided."New value: +"Filter by teams (optional, excludes current_user_context / all_visible). Not used if `incident_id` is provided."
  3. Changed1 schema field changedv4.0.7
    • changedInput schema / properties / current_user_context / description
      Previous value: -"Filter by current user's context (default: True). Not used if `incident_id` is provided."New value: +"Filter by current user's context (default: True); errors if the current user belongs to no teams. Not used if `incident_id` is provided."
  4. Changed5 schema fields changedv4.0.1
    • addedInput schema / properties / include
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "List of fields to include in the response. If specified, only these fields will be returned for each incident"
      +}
    • changedInput schema / properties / include_past_incidents / description
      Previous value: -"If True and `incident_id` is provided, includes similar past incidents\nin the response. Defaults to False. Cannot be used without `incident_id`."New value: +"If True and `incident_id` is provided, includes similar past incidents in the response. Defaults to False. Cannot be used without `incident_id`."
    • changedInput schema / properties / include_related_incidents / description
      Previous value: -"If True and `incident_id` is provided, includes related incidents\nimpacting other services/responders in the response. Defaults to False. Cannot be used without `incident_id`."New value: +"If True and `incident_id` is provided, includes related incidents impacting other services/responders in the response. Defaults to False. Cannot be used without `incident_id`."
    • changedInput schema / properties / statuses / description
      Previous value: -"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\"]`."New value: +"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."
    • addedInput schema / properties / urgencies
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "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."
      +}
  5. Changed24 schema fields changedv3.1.4
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / current_user_context / description
      Added value: +"Filter by current user's context (default: True). Not used if `incident_id` is provided."
    • removedInput schema / properties / current_user_context / title
      Removed value: -"Current User Context"
    • addedInput schema / properties / incident_id / description
      Added value: +"The incident ID or number to retrieve (optional, cannot be used with any other filters)."
    • removedInput schema / properties / incident_id / title
      Removed value: -"Incident Id"
    • addedInput schema / properties / include_notes / description
      Added value: +"If True, includes notes for each incident in the response. Defaults to False."
    • removedInput schema / properties / include_notes / title
      Removed value: -"Include Notes"
    • addedInput schema / properties / include_past_incidents / description
      Added value: +"If True and `incident_id` is provided, includes similar past incidents\nin the response. Defaults to False. Cannot be used without `incident_id`."
    • removedInput schema / properties / include_past_incidents / title
      Removed value: -"Include Past Incidents"
    • addedInput schema / properties / include_related_incidents / description
      Added value: +"If True and `incident_id` is provided, includes related incidents\nimpacting other services/responders in the response. Defaults to False. Cannot be used without `incident_id`."
    • removedInput schema / properties / include_related_incidents / title
      Removed value: -"Include Related Incidents"
    • addedInput schema / properties / limit / description
      Added value: +"Max results (optional). Not used if `incident_id` is provided."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • addedInput schema / properties / service_ids / description
      Added value: +"Filter by services (optional, excludes current_user_context). Not used if `incident_id` is provided."
    • removedInput schema / properties / service_ids / title
      Removed value: -"Service Ids"
    • addedInput schema / properties / since / description
      Added value: +"Start of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided."
    • removedInput schema / properties / since / title
      Removed value: -"Since"
    • addedInput schema / properties / statuses / description
      Added value: +"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\"]`."
    • removedInput schema / properties / statuses / title
      Removed value: -"Statuses"
    • addedInput schema / properties / team_ids / description
      Added value: +"Filter by teams (optional, excludes current_user_context). Not used if `incident_id` is provided."
    • removedInput schema / properties / team_ids / title
      Removed value: -"Team Ids"
    • addedInput schema / properties / until / description
      Added value: +"End of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided."
    • removedInput schema / properties / until / title
      Removed value: -"Until"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  6. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden well: it discloses that current_user_context defaults True, errors if the user belongs to no teams, is silently overridden to False by service_ids/team_ids, and that all_visible cannot combine with service or team filters. It does not address permissions for features like urgencies, rate limits, or pagination behavior across large result sets, so it stops short of full disclosure for a 14-parameter read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in one sentence, then four short bullets map each usage mode to its parameter combination, with the riskiest constraint (include_* only on the detail call) repeated where it matters. No filler sentences and no restating of the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter tool with no annotations and an output schema that covers the return shape, the description covers the mode selection, the key override semantics, and the errors it can raise (no-team user). The remaining omissions are pagination/limit behavior and the fact that the default range is one month with a six-month cap, which an agent could miss when constructing list calls.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each parameter is already documented in detail, including the implication and mutual-exclusion rules. The description's added value is grouping parameters into scenarios rather than redefining them; it says nothing about limit, include, since/until, or statuses/urgencies usage beyond what the schema states, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource ('Get PagerDuty incidents') and explicitly splits the two modes: filtered listing versus single-incident detail by ID or number. That scope immediately separates it from siblings like get_oncalls, get_schedules, and the write-side acknowledge_incident/resolve_incident tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Call patterns' block is a genuine decision table: omit ID filters for my/team incidents, pass service_ids/team_ids for scoped lists, use all_visible alone for account-wide, and make a second call with only incident_id for detail plus notes. It also states exclusions explicitly ('Do not also set include_notes / include_past_incidents / include_related_incidents on this list call'), which is exactly the when-not guidance an agent needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.