naftiko: 1.0.0-alpha2 info: label: PagerDuty API — Incident Workflows description: 'PagerDuty API — Incident Workflows. 15 operations. Lead operation: PagerDuty List Incident Workflows. Self-contained Naftiko capability covering one Pagerduty business surface.' tags: - Pagerduty - Incident Workflows created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PAGERDUTY_API_KEY: PAGERDUTY_API_KEY capability: consumes: - type: http namespace: pagerduty-incident-workflows baseUri: https://api.pagerduty.com description: PagerDuty API — Incident Workflows business capability. Self-contained, no shared references. resources: - name: incident_workflows path: /incident_workflows operations: - name: listincidentworkflows method: GET description: PagerDuty List Incident Workflows outputRawFormat: json outputParameters: - name: result type: object value: $. - name: postincidentworkflow method: POST description: PagerDuty Create an Incident Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: incident_workflows-actions path: /incident_workflows/actions operations: - name: listincidentworkflowactions method: GET description: PagerDuty List Actions outputRawFormat: json outputParameters: - name: result type: object value: $. - name: incident_workflows-actions-id path: /incident_workflows/actions/{id} operations: - name: getincidentworkflowaction method: GET description: PagerDuty Get an Action outputRawFormat: json outputParameters: - name: result type: object value: $. - name: incident_workflows-triggers path: /incident_workflows/triggers operations: - name: listincidentworkflowtriggers method: GET description: PagerDuty List Triggers outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createincidentworkflowtrigger method: POST description: PagerDuty Create a Trigger outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: incident_workflows-triggers-id path: /incident_workflows/triggers/{id} operations: - name: getincidentworkflowtrigger method: GET description: PagerDuty Get a Trigger outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateincidentworkflowtrigger method: PUT description: PagerDuty Update a Trigger outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: deleteincidentworkflowtrigger method: DELETE description: PagerDuty Delete a Trigger outputRawFormat: json outputParameters: - name: result type: object value: $. - name: incident_workflows-triggers-id-services path: /incident_workflows/triggers/{id}/services operations: - name: associateservicetoincidentworkflowtrigger method: POST description: PagerDuty Associate a Trigger and Service outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: incident_workflows-triggers-trigger_id-services-service_id path: /incident_workflows/triggers/{trigger_id}/services/{service_id} operations: - name: deleteservicefromincidentworkflowtrigger method: DELETE description: PagerDuty Dissociate a Trigger and Service outputRawFormat: json outputParameters: - name: result type: object value: $. - name: incident_workflows-id path: /incident_workflows/{id} operations: - name: getincidentworkflow method: GET description: PagerDuty Get an Incident Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deleteincidentworkflow method: DELETE description: PagerDuty Delete an Incident Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. - name: putincidentworkflow method: PUT description: PagerDuty Update an Incident Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: incident_workflows-id-instances path: /incident_workflows/{id}/instances operations: - name: createincidentworkflowinstance method: POST description: PagerDuty Start an Incident Workflow Instance outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: apikey key: Authorization value: '{{env.PAGERDUTY_API_KEY}}' placement: header exposes: - type: rest namespace: pagerduty-incident-workflows-rest port: 8080 description: REST adapter for PagerDuty API — Incident Workflows. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/incident-workflows name: incident-workflows description: REST surface for incident_workflows. operations: - method: GET name: listincidentworkflows description: PagerDuty List Incident Workflows call: pagerduty-incident-workflows.listincidentworkflows outputParameters: - type: object mapping: $. - method: POST name: postincidentworkflow description: PagerDuty Create an Incident Workflow call: pagerduty-incident-workflows.postincidentworkflow with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/incident-workflows/actions name: incident-workflows-actions description: REST surface for incident_workflows-actions. operations: - method: GET name: listincidentworkflowactions description: PagerDuty List Actions call: pagerduty-incident-workflows.listincidentworkflowactions outputParameters: - type: object mapping: $. - path: /v1/incident-workflows/actions/{id} name: incident-workflows-actions-id description: REST surface for incident_workflows-actions-id. operations: - method: GET name: getincidentworkflowaction description: PagerDuty Get an Action call: pagerduty-incident-workflows.getincidentworkflowaction outputParameters: - type: object mapping: $. - path: /v1/incident-workflows/triggers name: incident-workflows-triggers description: REST surface for incident_workflows-triggers. operations: - method: GET name: listincidentworkflowtriggers description: PagerDuty List Triggers call: pagerduty-incident-workflows.listincidentworkflowtriggers outputParameters: - type: object mapping: $. - method: POST name: createincidentworkflowtrigger description: PagerDuty Create a Trigger call: pagerduty-incident-workflows.createincidentworkflowtrigger with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/incident-workflows/triggers/{id} name: incident-workflows-triggers-id description: REST surface for incident_workflows-triggers-id. operations: - method: GET name: getincidentworkflowtrigger description: PagerDuty Get a Trigger call: pagerduty-incident-workflows.getincidentworkflowtrigger outputParameters: - type: object mapping: $. - method: PUT name: updateincidentworkflowtrigger description: PagerDuty Update a Trigger call: pagerduty-incident-workflows.updateincidentworkflowtrigger with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteincidentworkflowtrigger description: PagerDuty Delete a Trigger call: pagerduty-incident-workflows.deleteincidentworkflowtrigger outputParameters: - type: object mapping: $. - path: /v1/incident-workflows/triggers/{id}/services name: incident-workflows-triggers-id-services description: REST surface for incident_workflows-triggers-id-services. operations: - method: POST name: associateservicetoincidentworkflowtrigger description: PagerDuty Associate a Trigger and Service call: pagerduty-incident-workflows.associateservicetoincidentworkflowtrigger with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/incident-workflows/triggers/{trigger-id}/services/{service-id} name: incident-workflows-triggers-trigger-id-services-service-id description: REST surface for incident_workflows-triggers-trigger_id-services-service_id. operations: - method: DELETE name: deleteservicefromincidentworkflowtrigger description: PagerDuty Dissociate a Trigger and Service call: pagerduty-incident-workflows.deleteservicefromincidentworkflowtrigger outputParameters: - type: object mapping: $. - path: /v1/incident-workflows/{id} name: incident-workflows-id description: REST surface for incident_workflows-id. operations: - method: GET name: getincidentworkflow description: PagerDuty Get an Incident Workflow call: pagerduty-incident-workflows.getincidentworkflow outputParameters: - type: object mapping: $. - method: DELETE name: deleteincidentworkflow description: PagerDuty Delete an Incident Workflow call: pagerduty-incident-workflows.deleteincidentworkflow outputParameters: - type: object mapping: $. - method: PUT name: putincidentworkflow description: PagerDuty Update an Incident Workflow call: pagerduty-incident-workflows.putincidentworkflow with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/incident-workflows/{id}/instances name: incident-workflows-id-instances description: REST surface for incident_workflows-id-instances. operations: - method: POST name: createincidentworkflowinstance description: PagerDuty Start an Incident Workflow Instance call: pagerduty-incident-workflows.createincidentworkflowinstance with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: pagerduty-incident-workflows-mcp port: 9090 transport: http description: MCP adapter for PagerDuty API — Incident Workflows. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: pagerduty-list-incident-workflows description: PagerDuty List Incident Workflows hints: readOnly: true destructive: false idempotent: true call: pagerduty-incident-workflows.listincidentworkflows outputParameters: - type: object mapping: $. - name: pagerduty-create-incident-workflow description: PagerDuty Create an Incident Workflow hints: readOnly: false destructive: false idempotent: false call: pagerduty-incident-workflows.postincidentworkflow with: body: tools.body outputParameters: - type: object mapping: $. - name: pagerduty-list-actions description: PagerDuty List Actions hints: readOnly: true destructive: false idempotent: true call: pagerduty-incident-workflows.listincidentworkflowactions outputParameters: - type: object mapping: $. - name: pagerduty-get-action description: PagerDuty Get an Action hints: readOnly: true destructive: false idempotent: true call: pagerduty-incident-workflows.getincidentworkflowaction outputParameters: - type: object mapping: $. - name: pagerduty-list-triggers description: PagerDuty List Triggers hints: readOnly: true destructive: false idempotent: true call: pagerduty-incident-workflows.listincidentworkflowtriggers outputParameters: - type: object mapping: $. - name: pagerduty-create-trigger description: PagerDuty Create a Trigger hints: readOnly: false destructive: false idempotent: false call: pagerduty-incident-workflows.createincidentworkflowtrigger with: body: tools.body outputParameters: - type: object mapping: $. - name: pagerduty-get-trigger description: PagerDuty Get a Trigger hints: readOnly: true destructive: false idempotent: true call: pagerduty-incident-workflows.getincidentworkflowtrigger outputParameters: - type: object mapping: $. - name: pagerduty-update-trigger description: PagerDuty Update a Trigger hints: readOnly: false destructive: false idempotent: true call: pagerduty-incident-workflows.updateincidentworkflowtrigger with: body: tools.body outputParameters: - type: object mapping: $. - name: pagerduty-delete-trigger description: PagerDuty Delete a Trigger hints: readOnly: false destructive: true idempotent: true call: pagerduty-incident-workflows.deleteincidentworkflowtrigger outputParameters: - type: object mapping: $. - name: pagerduty-associate-trigger-and-service description: PagerDuty Associate a Trigger and Service hints: readOnly: false destructive: false idempotent: false call: pagerduty-incident-workflows.associateservicetoincidentworkflowtrigger with: body: tools.body outputParameters: - type: object mapping: $. - name: pagerduty-dissociate-trigger-and-service description: PagerDuty Dissociate a Trigger and Service hints: readOnly: false destructive: true idempotent: true call: pagerduty-incident-workflows.deleteservicefromincidentworkflowtrigger outputParameters: - type: object mapping: $. - name: pagerduty-get-incident-workflow description: PagerDuty Get an Incident Workflow hints: readOnly: true destructive: false idempotent: true call: pagerduty-incident-workflows.getincidentworkflow outputParameters: - type: object mapping: $. - name: pagerduty-delete-incident-workflow description: PagerDuty Delete an Incident Workflow hints: readOnly: false destructive: true idempotent: true call: pagerduty-incident-workflows.deleteincidentworkflow outputParameters: - type: object mapping: $. - name: pagerduty-update-incident-workflow description: PagerDuty Update an Incident Workflow hints: readOnly: false destructive: false idempotent: true call: pagerduty-incident-workflows.putincidentworkflow with: body: tools.body outputParameters: - type: object mapping: $. - name: pagerduty-start-incident-workflow-instance description: PagerDuty Start an Incident Workflow Instance hints: readOnly: false destructive: false idempotent: false call: pagerduty-incident-workflows.createincidentworkflowinstance with: body: tools.body outputParameters: - type: object mapping: $.