naftiko: 1.0.0-alpha2 info: label: Rootly API — Incidents description: 'Rootly API — Incidents. 7 operations. Lead operation: List incidents. Self-contained Naftiko capability covering one Rootly business surface.' tags: - Rootly - Incidents created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ROOTLY_API_KEY: ROOTLY_API_KEY capability: consumes: - type: http namespace: rootly-incidents baseUri: https://api.rootly.com/v1 description: Rootly API — Incidents business capability. Self-contained, no shared references. resources: - name: incidents path: /incidents operations: - name: get method: GET description: List incidents outputRawFormat: json outputParameters: - name: result type: object value: $. - name: post method: POST description: Create incident outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: incidents-id path: /incidents/{id} operations: - name: get method: GET description: Get incident outputRawFormat: json outputParameters: - name: result type: object value: $. - name: patch method: PATCH description: Update incident outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete incident outputRawFormat: json outputParameters: - name: result type: object value: $. - name: incidents-id-mitigate path: /incidents/{id}/mitigate operations: - name: post method: POST description: Mitigate incident outputRawFormat: json outputParameters: - name: result type: object value: $. - name: incidents-id-resolve path: /incidents/{id}/resolve operations: - name: post method: POST description: Resolve incident outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ROOTLY_API_KEY}}' exposes: - type: rest namespace: rootly-incidents-rest port: 8080 description: REST adapter for Rootly API — Incidents. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/incidents name: incidents description: REST surface for incidents. operations: - method: GET name: get description: List incidents call: rootly-incidents.get outputParameters: - type: object mapping: $. - method: POST name: post description: Create incident call: rootly-incidents.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/incidents/{id} name: incidents-id description: REST surface for incidents-id. operations: - method: GET name: get description: Get incident call: rootly-incidents.get outputParameters: - type: object mapping: $. - method: PATCH name: patch description: Update incident call: rootly-incidents.patch with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete incident call: rootly-incidents.delete outputParameters: - type: object mapping: $. - path: /v1/incidents/{id}/mitigate name: incidents-id-mitigate description: REST surface for incidents-id-mitigate. operations: - method: POST name: post description: Mitigate incident call: rootly-incidents.post outputParameters: - type: object mapping: $. - path: /v1/incidents/{id}/resolve name: incidents-id-resolve description: REST surface for incidents-id-resolve. operations: - method: POST name: post description: Resolve incident call: rootly-incidents.post outputParameters: - type: object mapping: $. - type: mcp namespace: rootly-incidents-mcp port: 9090 transport: http description: MCP adapter for Rootly API — Incidents. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-incidents description: List incidents hints: readOnly: true destructive: false idempotent: true call: rootly-incidents.get outputParameters: - type: object mapping: $. - name: create-incident description: Create incident hints: readOnly: false destructive: false idempotent: false call: rootly-incidents.post with: body: tools.body outputParameters: - type: object mapping: $. - name: get-incident description: Get incident hints: readOnly: true destructive: false idempotent: true call: rootly-incidents.get outputParameters: - type: object mapping: $. - name: update-incident description: Update incident hints: readOnly: false destructive: false idempotent: true call: rootly-incidents.patch with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-incident description: Delete incident hints: readOnly: false destructive: true idempotent: true call: rootly-incidents.delete outputParameters: - type: object mapping: $. - name: mitigate-incident description: Mitigate incident hints: readOnly: false destructive: false idempotent: false call: rootly-incidents.post outputParameters: - type: object mapping: $. - name: resolve-incident description: Resolve incident hints: readOnly: false destructive: false idempotent: false call: rootly-incidents.post outputParameters: - type: object mapping: $.