naftiko: 1.0.0-alpha2 info: label: Slack Functions API — Workflows description: 'Slack Functions API — Workflows. 2 operations. Lead operation: Complete Function Error. Self-contained Naftiko capability covering one Slack business surface.' tags: - Slack - Workflows created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SLACK_API_KEY: SLACK_API_KEY capability: consumes: - type: http namespace: functions-workflows baseUri: https://slack.com/api description: Slack Functions API — Workflows business capability. Self-contained, no shared references. resources: - name: functions.completeError path: /functions.completeError operations: - name: postfunctionscompleteerror method: POST description: Complete Function Error outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: header type: string description: 'Authentication token. Requires scope: `functions:write`' required: true - name: body in: body type: object description: Request body (JSON). required: true - name: functions.completeSuccess path: /functions.completeSuccess operations: - name: postfunctionscompletesuccess method: POST description: Complete Function Success outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: header type: string description: 'Authentication token. Requires scope: `functions:write`' required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.SLACK_API_KEY}}' exposes: - type: rest namespace: functions-workflows-rest port: 8080 description: REST adapter for Slack Functions API — Workflows. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/functions-completeerror name: functions-completeerror description: REST surface for functions.completeError. operations: - method: POST name: postfunctionscompleteerror description: Complete Function Error call: functions-workflows.postfunctionscompleteerror with: token: rest.token body: rest.body outputParameters: - type: object mapping: $. - path: /v1/functions-completesuccess name: functions-completesuccess description: REST surface for functions.completeSuccess. operations: - method: POST name: postfunctionscompletesuccess description: Complete Function Success call: functions-workflows.postfunctionscompletesuccess with: token: rest.token body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: functions-workflows-mcp port: 9090 transport: http description: MCP adapter for Slack Functions API — Workflows. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: complete-function-error description: Complete Function Error hints: readOnly: false destructive: false idempotent: false call: functions-workflows.postfunctionscompleteerror with: token: tools.token body: tools.body outputParameters: - type: object mapping: $. - name: complete-function-success description: Complete Function Success hints: readOnly: false destructive: false idempotent: false call: functions-workflows.postfunctionscompletesuccess with: token: tools.token body: tools.body outputParameters: - type: object mapping: $.