pagerduty-mcp-server
v4.1.1MCP server for LLM agents to interact with PagerDuty SaaS
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_escalation_policies
Get PagerDuty escalation policies by filters or get details for a specific policy ID. Call patterns: - Default: omit filters (uses current user's policies/teams). - By IDs: pass `user_ids` and/or `team_ids` (implies `current_user_context=False`, including overriding an explicit True). - By name: pass `query` with the default context (limited to your teams/policies); do not set `current_user_context=False` with only `query`.
| Parameter | Type | Description |
|---|---|---|
current_user_context | boolean | Use current user's ID/team IDs context (default: True). Ignored when `user_ids` or `team_ids` are provided (those imply False, even if this is explicitly True). Not used if `policy_id` is provided. |
include | List of fields to include in the response. If specified, only these fields will be returned for each escalation policy | |
limit | Limit the number of results (optional). Not used if `policy_id` is provided. | |
policy_id | The escalation policy ID to retrieve (optional, cannot be used with any other filters). | |
query | Policies whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams/policies). Not a substitute for `user_ids`/`team_ids` when context is Fa… | |
team_ids | Policies assigned to these team IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `policy_id` is provided. | |
user_ids | Policies that include these user IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `policy_id` is provided. |
get_incidents
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).
| Parameter | Type | Description |
|---|---|---|
all_visible | boolean | 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. Imp… |
current_user_context | boolean | 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, e… |
incident_id | The incident ID or number to retrieve (optional, cannot be used with any other filters). | |
include | List of fields to include in the response. If specified, only these fields will be returned for each incident | |
include_notes | 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`). | |
include_past_incidents | Only with `incident_id`. If True, includes similar past incidents. Defaults to False. Never set on list calls. | |
include_related_incidents | Only with `incident_id`. If True, includes related incidents. Defaults to False. Never set on list calls. | |
limit | Max results (optional). Not used if `incident_id` is provided. | |
service_ids | 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. | |
since | Start of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided. | |
statuses | 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 | 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. | |
until | End of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided. | |
urgencies | 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… |
acknowledge_incident
Acknowledge a PagerDuty incident. This signals that someone is actively working on the incident.
| Parameter | Type | Description |
|---|---|---|
incident_id * | string | The ID of the incident to acknowledge (required). |
include | List of fields to include in the response. If specified, only these fields will be returned for the incident. |
resolve_incident
Resolve a PagerDuty incident. This marks the incident as resolved and stops any further escalations.
| Parameter | Type | Description |
|---|---|---|
incident_id * | string | The ID of the incident to resolve (required). |
include | List of fields to include in the response. If specified, only these fields will be returned for the incident. |
add_incident_note
Add a note to a PagerDuty incident. Notes are used to record additional context, investigation progress, or resolution details.
| Parameter | Type | Description |
|---|---|---|
content * | string | The text content of the note (required). |
incident_id * | string | The ID of the incident to add a note to (required). |
get_oncalls
List on-call entries for schedules, policies, or time ranges. Call patterns: - Default: omit exclusive filters (uses escalation policies the current user is a target of). - By schedule: `schedule_ids` may be used with the default context (intersection) or with `current_user_context=False`. - By user/policy IDs: pass `user_ids` and/or `escalation_policy_ids` (implies `current_user_context=False`, including overriding an explicit True). Behavior varies by time parameters: 1. Without since/until: Returns current on-calls Example: get_oncalls(current_user_context=False, schedule_ids=["PSCHED1…
| Parameter | Type | Description |
|---|---|---|
current_user_context | boolean | Use escalation policies the current user is a target of (default: True); errors if the current user is a target of no escalation policy and no schedule_ids are given. Ignored when `user_ids` or `escal… |
earliest | Only earliest on-call per policy/level/user combo (optional) | |
escalation_policy_ids | Filter by policies (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). | |
include | List of fields to include in the response. If specified, only these fields will be returned for each on-call entry | |
limit | Max results (optional) | |
schedule_ids | Filter by schedules (optional). Allowed with default context. | |
since | Start of query range in ISO8601 format (default: current datetime) | |
until | End of query range in ISO8601 format (default: current datetime, max range: 90 days in the future). Cannot be before `since`. | |
user_ids | Filter by users (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). |
get_schedules
Get PagerDuty schedules by filters or get details for a specific schedule ID.
| Parameter | Type | Description |
|---|---|---|
include | List of fields to include in the response. If specified, only these fields will be returned for each schedule | |
limit | Limit the number of results returned (optional). Not used if `schedule_id` is provided. | |
query | Filter schedules whose names contain the search query (optional). Not used if `schedule_id` is provided. | |
schedule_id | The schedule ID to retrieve details for (optional, cannot be used with query or limit). | |
since | Start time for overrides/final schedule details (ISO8601, optional). Only used if `schedule_id` is provided. Defaults to 2 weeks before 'until' if 'until' is given. | |
until | End time for overrides/final schedule details (ISO8601, optional). Only used if `schedule_id` is provided. Defaults to 2 weeks after 'since' if 'since' is given. |
list_users_oncall
List the users on call for a schedule during the specified time range.
| Parameter | Type | Description |
|---|---|---|
schedule_id * | string | The ID of the schedule to query |
include | List of fields to include in the response. If specified, only these fields will be returned for each user on call | |
since | Start of query range in ISO8601 format | |
until | End of query range in ISO8601 format |
get_services
Get PagerDuty services by filters or get details for a specific service ID. Call patterns: - Search by name: `query="Service Name"` with the default context (omit `current_user_context`; limited to your teams). - By team: pass `team_ids` (implies `current_user_context=False`, including overriding an explicit True). - Do not set `current_user_context=False` with only `query`; that errors because `team_ids` are required in False mode.
| Parameter | Type | Description |
|---|---|---|
current_user_context | boolean | Use current user's team IDs to filter (default: True); errors if the current user belongs to no teams. Ignored when `team_ids` are provided (those imply False, even if this is explicitly True). Not us… |
include | List of fields to include in the response. If specified, only these fields will be returned for each service | |
limit | Limit the number of results (optional). Not used if `service_id` is provided. | |
query | Filter services whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams). Not a substitute for `team_ids` when context is False. Not used… | |
service_id | The service ID to retrieve (optional, cannot be used with any other filters). | |
team_ids | Filter results to only services assigned to teams with the given IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `service_id` is pr… |
get_teams
Get PagerDuty teams by filters or get details for a specific team ID.
| Parameter | Type | Description |
|---|---|---|
include | List of fields to include in the response. If specified, only these fields will be returned for each team | |
limit | Limit the number of results returned (optional). Not used if `team_id` is provided. | |
query | Filter teams whose names contain the search query (optional). Not used if `team_id` is provided. | |
team_id | The team ID to retrieve (optional, cannot be used with any other filters). |
get_users
Get PagerDuty users by filters or get details for a specific user ID. Call patterns: - Search by name: `query="Name"` with the default context (omit `current_user_context`; limited to your teams). - By team: pass `team_ids` (implies `current_user_context=False`, including overriding an explicit True). - Do not set `current_user_context=False` with only `query`; that errors because `team_ids` are required in False mode.
| Parameter | Type | Description |
|---|---|---|
current_user_context | boolean | Use current user's team IDs to filter (default: True); errors if the current user belongs to no teams. Ignored when `team_ids` are provided (those imply False, even if this is explicitly True). Not us… |
include | List of fields to include in the response. If specified, only these fields will be returned for each user | |
limit | Limit the number of results (optional). Not used if `user_id` is provided. | |
query | Filter users whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams). Not a substitute for `team_ids` when context is False. Not used if… | |
team_ids | Filter results to only users assigned to teams with the given IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `user_id` is provided… | |
user_id | The user ID to retrieve (optional, cannot be used with any other filters). |
build_user_context
Validate and build the current user's context into a dictionary with the following format: { "user_id": str, "team_ids": List[str], "service_ids": List[str], "escalation_policy_ids": List[str] } The MCP server tools use this user context to filter the following resources: - Escalation policies - Incidents - Oncalls - Services - Users