PagerDuty Skill
Manage incidents and on-call schedules with PagerDuty API integration.
Installation
skill install ./examples/wasm-skills/pagerduty-skill
Configuration
skill config pagerduty --set PAGERDUTY_API_KEY=your_api_key
Tools
list-incidents
List incidents with optional filtering.
Parameters:
status(optional, string): Filter: triggered, acknowledged, resolvedurgency(optional, string): Filter: high, lowservice(optional, string): Filter by service IDsince(optional, string): Start date (ISO 8601)until(optional, string): End datelimit(optional, number): Maximum results (default: 25)
Example:
skill run pagerduty list-incidents --status triggered
skill run pagerduty list-incidents --urgency high
get-incident
Get detailed information about a specific incident.
Parameters:
id(required, string): Incident ID
Example:
skill run pagerduty get-incident --id P1234ABC
create-incident
Create a new incident manually.
Parameters:
title(required, string): Incident titleservice(required, string): Service IDfrom(required, string): Email of the user creating the incidenturgency(optional, string): high or low (default: high)body(optional, string): Incident description
Example:
skill run pagerduty create-incident --title "Database connection failures" --service PXXXXX --from "user@example.com"
acknowledge-incident
Acknowledge an incident.
Parameters:
id(required, string): Incident IDfrom(required, string): Email of the user acknowledging
Example:
skill run pagerduty acknowledge-incident --id P1234ABC --from "user@example.com"
resolve-incident
Resolve an incident.
Parameters:
id(required, string): Incident IDfrom(required, string): Email of the user resolvingresolution(optional, string): Resolution notes
Example:
skill run pagerduty resolve-incident --id P1234ABC --from "user@example.com" --resolution "Fixed by scaling up"
add-note
Add a note to an incident timeline.
Parameters:
incident_id(required, string): Incident IDcontent(required, string): Note contentfrom(required, string): Email of the user adding the note
Example:
skill run pagerduty add-note --incident_id P1234ABC --content "Identified root cause" --from "user@example.com"
list-oncalls
List current on-call assignments.
Parameters:
schedule(optional, string): Filter by schedule IDescalation_policy(optional, string): Filter by escalation policy ID
Example:
skill run pagerduty list-oncalls
list-services
List PagerDuty services.
Parameters:
query(optional, string): Search queryteam(optional, string): Filter by team ID
Example:
skill run pagerduty list-services --query "production"
