pagerduty-mcp-server

v4.1.1
pagerduty-mcp-server Checked 3 days ago Published 15 days ago

MCP 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`.

ParameterTypeDescription
current_user_contextbooleanUse 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.
includeList of fields to include in the response. If specified, only these fields will be returned for each escalation policy
limitLimit the number of results (optional). Not used if `policy_id` is provided.
policy_idThe escalation policy ID to retrieve (optional, cannot be used with any other filters).
queryPolicies 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_idsPolicies 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_idsPolicies 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).

ParameterTypeDescription
all_visiblebooleanIf 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_contextbooleanFilter 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_idThe incident ID or number to retrieve (optional, cannot be used with any other filters).
includeList of fields to include in the response. If specified, only these fields will be returned for each incident
include_notesOnly 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_incidentsOnly with `incident_id`. If True, includes similar past incidents. Defaults to False. Never set on list calls.
include_related_incidentsOnly with `incident_id`. If True, includes related incidents. Defaults to False. Never set on list calls.
limitMax results (optional). Not used if `incident_id` is provided.
service_idsFilter 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.
sinceStart of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided.
statusesFilter 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_idsFilter 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.
untilEnd of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if `incident_id` is provided.
urgenciesFilter 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.

ParameterTypeDescription
incident_id *stringThe ID of the incident to acknowledge (required).
includeList 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.

ParameterTypeDescription
incident_id *stringThe ID of the incident to resolve (required).
includeList 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.

ParameterTypeDescription
content *stringThe text content of the note (required).
incident_id *stringThe 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…

ParameterTypeDescription
current_user_contextbooleanUse 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…
earliestOnly earliest on-call per policy/level/user combo (optional)
escalation_policy_idsFilter by policies (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True).
includeList of fields to include in the response. If specified, only these fields will be returned for each on-call entry
limitMax results (optional)
schedule_idsFilter by schedules (optional). Allowed with default context.
sinceStart of query range in ISO8601 format (default: current datetime)
untilEnd of query range in ISO8601 format (default: current datetime, max range: 90 days in the future). Cannot be before `since`.
user_idsFilter 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.

ParameterTypeDescription
includeList of fields to include in the response. If specified, only these fields will be returned for each schedule
limitLimit the number of results returned (optional). Not used if `schedule_id` is provided.
queryFilter schedules whose names contain the search query (optional). Not used if `schedule_id` is provided.
schedule_idThe schedule ID to retrieve details for (optional, cannot be used with query or limit).
sinceStart 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.
untilEnd 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.

ParameterTypeDescription
schedule_id *stringThe ID of the schedule to query
includeList of fields to include in the response. If specified, only these fields will be returned for each user on call
sinceStart of query range in ISO8601 format
untilEnd 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.

ParameterTypeDescription
current_user_contextbooleanUse 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…
includeList of fields to include in the response. If specified, only these fields will be returned for each service
limitLimit the number of results (optional). Not used if `service_id` is provided.
queryFilter 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_idThe service ID to retrieve (optional, cannot be used with any other filters).
team_idsFilter 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.

ParameterTypeDescription
includeList of fields to include in the response. If specified, only these fields will be returned for each team
limitLimit the number of results returned (optional). Not used if `team_id` is provided.
queryFilter teams whose names contain the search query (optional). Not used if `team_id` is provided.
team_idThe 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.

ParameterTypeDescription
current_user_contextbooleanUse 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…
includeList of fields to include in the response. If specified, only these fields will be returned for each user
limitLimit the number of results (optional). Not used if `user_id` is provided.
queryFilter 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_idsFilter 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_idThe 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