Skip to main content
Glama
PagerDuty MCP Server

PagerDuty MCP Server

by wpfleger96

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PAGERDUTY_API_TOKENNoYour PagerDuty API token for authentication.
PAGERDUTY_CLIENT_IDNoClient ID for OAuth 2.0 PKCE authentication (required if not using API token).
PAGERDUTY_CLIENT_SECRETNoOptional client secret for OAuth token refresh (confidential client).
PAGERDUTY_OAUTH_CALLBACK_PORTNoPort for OAuth callback (default: 5173).5173

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

PagerDuty MCP Server v4.1.1

REQUIRED READING: You MUST read all tool documentation using the resource docs://tools before using any tools. Failure to read the tools documentation may result in incorrect or incomplete results.

Scoped list tools (get_incidents, get_services, get_users, get_escalation_policies, get_oncalls) have two modes:

  1. Default current_user_context=True: omit team/service/user ID filters (and omit current_user_context=False). Name query works in this mode (limited to the current user's teams/policies).

  2. Explicit filters: pass service_ids / team_ids / user_ids / escalation_policy_ids as documented per tool. Providing those exclusive filters with real IDs implies current_user_context=False (even if True was set explicitly). Blank-only exclusive ID lists error (non-exclusive filters like schedule_ids cannot paper over them). Never set current_user_context=False with only a name query and no ID filters. For get_incidents, include_notes / include_past_incidents / include_related_incidents require incident_id (list first, then fetch details).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_escalation_policiesA

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.

get_incidentsA

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).

acknowledge_incidentB

Acknowledge a PagerDuty incident. This signals that someone is actively working on the incident.

resolve_incidentA

Resolve a PagerDuty incident. This marks the incident as resolved and stops any further escalations.

add_incident_noteA

Add a note to a PagerDuty incident. Notes are used to record additional context, investigation progress, or resolution details.

get_oncallsA

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=["PSCHED123"])

  2. With since/until: Returns all on-calls in range Example: get_oncalls(current_user_context=False, schedule_ids=["PSCHED123"], since="2024-03-20T00:00:00Z", until="2024-03-27T00:00:00Z")

get_schedulesB

Get PagerDuty schedules by filters or get details for a specific schedule ID.

list_users_oncallC

List the users on call for a schedule during the specified time range.

get_servicesA

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.

get_teamsA

Get PagerDuty teams by filters or get details for a specific team ID.

get_usersA

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.

build_user_contextA

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
get_tool_documentation

TDQS

A3.7/5.0

Scored across 12 tools

Disambiguation4/5

Most tools map cleanly to distinct PagerDuty resources or incident actions. The main ambiguity is between get_oncalls and list_users_oncall, and several get_* tools combine list and detail modes, though the descriptions make reasonable distinctions.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern using get_, list_, acknowledge_, resolve_, add_, and build_. The use of get_ for both listing and fetching details is a minor semantic issue rather than a naming inconsistency.

Tool Count5/5

Twelve tools is a well-scoped size for a PagerDuty incident-management MCP server. Each tool covers a distinct resource or action, with no obvious filler tools.

Completeness3/5

The surface covers core read operations plus acknowledge, resolve, and note actions, which supports incident triage and response. However, it lacks create/update incident operations, assignment or priority changes, and write operations for schedules, teams, and services, leaving notable lifecycle gaps.

Maintenance

ActivityNo data
ResponsivenessOutdated data