naftiko: 1.0.0-alpha2 info: label: PagerDuty API — Templates description: 'PagerDuty API — Templates. 7 operations. Lead operation: PagerDuty List templates. Self-contained Naftiko capability covering one Pagerduty business surface.' tags: - Pagerduty - Templates created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PAGERDUTY_API_KEY: PAGERDUTY_API_KEY capability: consumes: - type: http namespace: pagerduty-templates baseUri: https://api.pagerduty.com description: PagerDuty API — Templates business capability. Self-contained, no shared references. resources: - name: templates path: /templates operations: - name: gettemplates method: GET description: PagerDuty List templates outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createtemplate method: POST description: PagerDuty Create a template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: templates-fields path: /templates/fields operations: - name: gettemplatefields method: GET description: PagerDuty List template fields outputRawFormat: json outputParameters: - name: result type: object value: $. - name: templates-id path: /templates/{id} operations: - name: gettemplate method: GET description: PagerDuty Get a template outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatetemplate method: PUT description: PagerDuty Update a template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletetemplate method: DELETE description: PagerDuty Delete a template outputRawFormat: json outputParameters: - name: result type: object value: $. - name: templates-id-render path: /templates/{id}/render operations: - name: rendertemplate method: POST description: PagerDuty Render a template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Authorization value: '{{env.PAGERDUTY_API_KEY}}' placement: header exposes: - type: rest namespace: pagerduty-templates-rest port: 8080 description: REST adapter for PagerDuty API — Templates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/templates name: templates description: REST surface for templates. operations: - method: GET name: gettemplates description: PagerDuty List templates call: pagerduty-templates.gettemplates outputParameters: - type: object mapping: $. - method: POST name: createtemplate description: PagerDuty Create a template call: pagerduty-templates.createtemplate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/templates/fields name: templates-fields description: REST surface for templates-fields. operations: - method: GET name: gettemplatefields description: PagerDuty List template fields call: pagerduty-templates.gettemplatefields outputParameters: - type: object mapping: $. - path: /v1/templates/{id} name: templates-id description: REST surface for templates-id. operations: - method: GET name: gettemplate description: PagerDuty Get a template call: pagerduty-templates.gettemplate outputParameters: - type: object mapping: $. - method: PUT name: updatetemplate description: PagerDuty Update a template call: pagerduty-templates.updatetemplate with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletetemplate description: PagerDuty Delete a template call: pagerduty-templates.deletetemplate outputParameters: - type: object mapping: $. - path: /v1/templates/{id}/render name: templates-id-render description: REST surface for templates-id-render. operations: - method: POST name: rendertemplate description: PagerDuty Render a template call: pagerduty-templates.rendertemplate with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: pagerduty-templates-mcp port: 9090 transport: http description: MCP adapter for PagerDuty API — Templates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: pagerduty-list-templates description: PagerDuty List templates hints: readOnly: true destructive: false idempotent: true call: pagerduty-templates.gettemplates outputParameters: - type: object mapping: $. - name: pagerduty-create-template description: PagerDuty Create a template hints: readOnly: false destructive: false idempotent: false call: pagerduty-templates.createtemplate with: body: tools.body outputParameters: - type: object mapping: $. - name: pagerduty-list-template-fields description: PagerDuty List template fields hints: readOnly: true destructive: false idempotent: true call: pagerduty-templates.gettemplatefields outputParameters: - type: object mapping: $. - name: pagerduty-get-template description: PagerDuty Get a template hints: readOnly: true destructive: false idempotent: true call: pagerduty-templates.gettemplate outputParameters: - type: object mapping: $. - name: pagerduty-update-template description: PagerDuty Update a template hints: readOnly: false destructive: false idempotent: true call: pagerduty-templates.updatetemplate with: body: tools.body outputParameters: - type: object mapping: $. - name: pagerduty-delete-template description: PagerDuty Delete a template hints: readOnly: false destructive: true idempotent: true call: pagerduty-templates.deletetemplate outputParameters: - type: object mapping: $. - name: pagerduty-render-template description: PagerDuty Render a template hints: readOnly: false destructive: false idempotent: false call: pagerduty-templates.rendertemplate with: body: tools.body outputParameters: - type: object mapping: $.