Snowflake · Capability

Snowflake Function API — function

Snowflake Function API — function. 5 operations. Lead operation: List Functions. Self-contained Naftiko capability covering one Snowflake business surface.

Run with Naftiko Snowflakefunction

What You Can Do

GET
Listfunctions — List Functions
/v1/api/v2/databases/{database}/schemas/{schema}/functions
POST
Createfunction — Create a Function
/v1/api/v2/databases/{database}/schemas/{schema}/functions
GET
Fetchfunction — Fetch a Function.
/v1/api/v2/databases/{database}/schemas/{schema}/functions/{namewithargs}
DELETE
Deletefunction — Delete a Function
/v1/api/v2/databases/{database}/schemas/{schema}/functions/{namewithargs}
POST
Executefunction — Execute a Function.
/v1/api/v2/databases/{database}/schemas/{schema}/functions/name-execute

MCP Tools

list-functions

List Functions

read-only idempotent
create-function

Create a Function

fetch-function

Fetch a Function.

read-only idempotent
delete-function

Delete a Function

idempotent
execute-function

Execute a Function.

Capability Spec

function-function.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Snowflake Function API — function
  description: 'Snowflake Function API — function. 5 operations. Lead operation: List Functions. Self-contained Naftiko capability
    covering one Snowflake business surface.'
  tags:
  - Snowflake
  - function
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SNOWFLAKE_API_KEY: SNOWFLAKE_API_KEY
capability:
  consumes:
  - type: http
    namespace: function-function
    baseUri: https://org-account.snowflakecomputing.com
    description: Snowflake Function API — function business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-databases-database-schemas-schema-functions
      path: /api/v2/databases/{database}/schemas/{schema}/functions
      operations:
      - name: listfunctions
        method: GET
        description: List Functions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createfunction
        method: POST
        description: Create a Function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-databases-database-schemas-schema-functions-nameWithArgs
      path: /api/v2/databases/{database}/schemas/{schema}/functions/{nameWithArgs}
      operations:
      - name: fetchfunction
        method: GET
        description: Fetch a Function.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletefunction
        method: DELETE
        description: Delete a Function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v2-databases-database-schemas-schema-functions-name}:execute
      path: /api/v2/databases/{database}/schemas/{schema}/functions/{name}:execute
      operations:
      - name: executefunction
        method: POST
        description: Execute a Function.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: function-function-rest
    port: 8080
    description: REST adapter for Snowflake Function API — function. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/databases/{database}/schemas/{schema}/functions
      name: api-v2-databases-database-schemas-schema-functions
      description: REST surface for api-v2-databases-database-schemas-schema-functions.
      operations:
      - method: GET
        name: listfunctions
        description: List Functions
        call: function-function.listfunctions
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createfunction
        description: Create a Function
        call: function-function.createfunction
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/databases/{database}/schemas/{schema}/functions/{namewithargs}
      name: api-v2-databases-database-schemas-schema-functions-namewithargs
      description: REST surface for api-v2-databases-database-schemas-schema-functions-nameWithArgs.
      operations:
      - method: GET
        name: fetchfunction
        description: Fetch a Function.
        call: function-function.fetchfunction
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletefunction
        description: Delete a Function
        call: function-function.deletefunction
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/databases/{database}/schemas/{schema}/functions/name-execute
      name: api-v2-databases-database-schemas-schema-functions-name-execute
      description: REST surface for api-v2-databases-database-schemas-schema-functions-name}:execute.
      operations:
      - method: POST
        name: executefunction
        description: Execute a Function.
        call: function-function.executefunction
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: function-function-mcp
    port: 9090
    transport: http
    description: MCP adapter for Snowflake Function API — function. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-functions
      description: List Functions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: function-function.listfunctions
      outputParameters:
      - type: object
        mapping: $.
    - name: create-function
      description: Create a Function
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: function-function.createfunction
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fetch-function
      description: Fetch a Function.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: function-function.fetchfunction
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-function
      description: Delete a Function
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: function-function.deletefunction
      outputParameters:
      - type: object
        mapping: $.
    - name: execute-function
      description: Execute a Function.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: function-function.executefunction
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.