Skip to main content

PagerDuty

Connects to the PagerDuty REST API. An agent can list, create, acknowledge, and resolve incidents, list services, and find who's on-call.

Add to an agent node's tools array with _node_type: "tool-pagerduty". See Connector Reference — How connectors are used.

Authentication

FieldRequiredDescription
api_tokenYesPagerDuty REST API token, sent as Authorization: Token token=<api_token>.
from_emailNoEmail address sent as the From header, required by PagerDuty for some write endpoints.
{
"name": "pagerduty",
"_node_type": "tool-pagerduty",
"api_token": "{{ secret.PAGERDUTY_API_TOKEN }}",
"from_email": "ops@example.com"
}

Tools

pd_list_incidents

List PagerDuty incidents filtered by status or service.

Parameters

ParameterTypeRequiredDescription
statusstringNoFilter by status: triggered, acknowledged, resolved
servicestringNoFilter by service ID
limitnumberNoMax incidents (default 20)

Returns: A newline-separated list of [<id>] <status> <title> lines, or "No incidents found.". Sorted by creation time, newest first.

pd_create_incident

Create a new PagerDuty incident and trigger alerts.

Parameters

ParameterTypeRequiredDescription
titlestringYesIncident title
service_idstringYesPagerDuty service ID
urgencystringNohigh or low (default high)
detailsstringNoIncident body/description
escalation_policystringNoEscalation policy ID (accepted as input but not currently included in the request body)

Returns: A confirmation message with the new incident's title and ID.

pd_resolve_incident

Resolve a PagerDuty incident, ending all active alerts.

Parameters

ParameterTypeRequiredDescription
idstringYesIncident ID
notestringNoResolution or acknowledgement note (accepted as input but not currently sent in the request)

Returns: A confirmation message: Incident <id> resolved..

pd_acknowledge_incident

Acknowledge a PagerDuty incident to stop re-notifying.

Parameters

ParameterTypeRequiredDescription
idstringYesIncident ID
notestringNoResolution or acknowledgement note (accepted as input but not currently sent in the request)

Returns: A confirmation message: Incident <id> acknowledged..

pd_list_services

List PagerDuty services and their current status.

Parameters

ParameterTypeRequiredDescription
limitnumberNoMax services (default 25)

Returns: A newline-separated list of [<id>] <name> status=<status> lines.

pd_who_is_on_call

Find who is currently on-call for a schedule or all schedules.

Parameters

ParameterTypeRequiredDescription
schedule_idstringNoSchedule ID (empty = all schedules)

Returns: A newline-separated list of <user> on-call for: <escalation policy> lines, or "No on-call entries found.".

Next