Slack · Capability

Slack Functions API — Functions

Slack Functions API — Functions. 5 operations. Lead operation: Complete Function Error. Self-contained Naftiko capability covering one Slack business surface.

Run with Naftiko SlackFunctions

What You Can Do

POST
Postfunctionscompleteerror — Complete Function Error
/v1/functions-completeerror
POST
Postfunctionscompletesuccess — Complete Function Success
/v1/functions-completesuccess
POST
Postfunctionsdistributionspermissionsadd — Add Function Distribution Permissions
/v1/functions-distributions-permissions-add
GET
Getfunctionsdistributionspermissionslist — List Function Distribution Permissions
/v1/functions-distributions-permissions-list
POST
Postfunctionsdistributionspermissionsremove — Remove Function Distribution Permissions
/v1/functions-distributions-permissions-remove

MCP Tools

complete-function-error

Complete Function Error

complete-function-success

Complete Function Success

add-function-distribution-permissions

Add Function Distribution Permissions

list-function-distribution-permissions

List Function Distribution Permissions

read-only idempotent
remove-function-distribution-permissions

Remove Function Distribution Permissions

Capability Spec

functions-functions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Slack Functions API — Functions
  description: 'Slack Functions API — Functions. 5 operations. Lead operation: Complete Function Error. Self-contained Naftiko
    capability covering one Slack business surface.'
  tags:
  - Slack
  - Functions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SLACK_API_KEY: SLACK_API_KEY
capability:
  consumes:
  - type: http
    namespace: functions-functions
    baseUri: https://slack.com/api
    description: Slack Functions API — Functions 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
    - name: functions.distributions.permissions.add
      path: /functions.distributions.permissions.add
      operations:
      - name: postfunctionsdistributionspermissionsadd
        method: POST
        description: Add Function Distribution Permissions
        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.distributions.permissions.list
      path: /functions.distributions.permissions.list
      operations:
      - name: getfunctionsdistributionspermissionslist
        method: GET
        description: List Function Distribution Permissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: token
          in: query
          type: string
          description: 'Authentication token. Requires scope: `functions:read`'
          required: true
        - name: function_app_id
          in: query
          type: string
          description: ID of the function app.
          required: true
    - name: functions.distributions.permissions.remove
      path: /functions.distributions.permissions.remove
      operations:
      - name: postfunctionsdistributionspermissionsremove
        method: POST
        description: Remove Function Distribution Permissions
        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-functions-rest
    port: 8080
    description: REST adapter for Slack Functions API — Functions. 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-functions.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-functions.postfunctionscompletesuccess
        with:
          token: rest.token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/functions-distributions-permissions-add
      name: functions-distributions-permissions-add
      description: REST surface for functions.distributions.permissions.add.
      operations:
      - method: POST
        name: postfunctionsdistributionspermissionsadd
        description: Add Function Distribution Permissions
        call: functions-functions.postfunctionsdistributionspermissionsadd
        with:
          token: rest.token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/functions-distributions-permissions-list
      name: functions-distributions-permissions-list
      description: REST surface for functions.distributions.permissions.list.
      operations:
      - method: GET
        name: getfunctionsdistributionspermissionslist
        description: List Function Distribution Permissions
        call: functions-functions.getfunctionsdistributionspermissionslist
        with:
          token: rest.token
          function_app_id: rest.function_app_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/functions-distributions-permissions-remove
      name: functions-distributions-permissions-remove
      description: REST surface for functions.distributions.permissions.remove.
      operations:
      - method: POST
        name: postfunctionsdistributionspermissionsremove
        description: Remove Function Distribution Permissions
        call: functions-functions.postfunctionsdistributionspermissionsremove
        with:
          token: rest.token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: functions-functions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Slack Functions API — Functions. 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-functions.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-functions.postfunctionscompletesuccess
      with:
        token: tools.token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: add-function-distribution-permissions
      description: Add Function Distribution Permissions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: functions-functions.postfunctionsdistributionspermissionsadd
      with:
        token: tools.token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-function-distribution-permissions
      description: List Function Distribution Permissions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: functions-functions.getfunctionsdistributionspermissionslist
      with:
        token: tools.token
        function_app_id: tools.function_app_id
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-function-distribution-permissions
      description: Remove Function Distribution Permissions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: functions-functions.postfunctionsdistributionspermissionsremove
      with:
        token: tools.token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.