ZenML · Capability

ZenML OSS REST API — Stacks

ZenML OSS REST API — Stacks. 4 operations. Lead operation: List Stacks. Self-contained Naftiko capability covering one Zenml business surface.

Run with Naftiko ZenmlStacks

What You Can Do

GET
Liststacks — List Stacks
/v1/stacks
POST
Createstack — Create Stack
/v1/stacks
GET
Getstack — Get Stack
/v1/stacks/{stack-id}
DELETE
Deletestack — Delete Stack
/v1/stacks/{stack-id}

MCP Tools

list-stacks

List Stacks

read-only idempotent
create-stack

Create Stack

get-stack

Get Stack

read-only idempotent
delete-stack

Delete Stack

idempotent

Capability Spec

zenml-stacks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ZenML OSS REST API — Stacks
  description: 'ZenML OSS REST API — Stacks. 4 operations. Lead operation: List Stacks. Self-contained Naftiko capability
    covering one Zenml business surface.'
  tags:
  - Zenml
  - Stacks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ZENML_API_KEY: ZENML_API_KEY
capability:
  consumes:
  - type: http
    namespace: zenml-stacks
    baseUri: https://your-zenml-server.example.com/api/v1
    description: ZenML OSS REST API — Stacks business capability. Self-contained, no shared references.
    resources:
    - name: stacks
      path: /stacks
      operations:
      - name: liststacks
        method: GET
        description: List Stacks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createstack
        method: POST
        description: Create Stack
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: stacks-stack_id
      path: /stacks/{stack_id}
      operations:
      - name: getstack
        method: GET
        description: Get Stack
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletestack
        method: DELETE
        description: Delete Stack
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ZENML_API_KEY}}'
  exposes:
  - type: rest
    namespace: zenml-stacks-rest
    port: 8080
    description: REST adapter for ZenML OSS REST API — Stacks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/stacks
      name: stacks
      description: REST surface for stacks.
      operations:
      - method: GET
        name: liststacks
        description: List Stacks
        call: zenml-stacks.liststacks
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createstack
        description: Create Stack
        call: zenml-stacks.createstack
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stacks/{stack-id}
      name: stacks-stack-id
      description: REST surface for stacks-stack_id.
      operations:
      - method: GET
        name: getstack
        description: Get Stack
        call: zenml-stacks.getstack
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletestack
        description: Delete Stack
        call: zenml-stacks.deletestack
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: zenml-stacks-mcp
    port: 9090
    transport: http
    description: MCP adapter for ZenML OSS REST API — Stacks. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-stacks
      description: List Stacks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zenml-stacks.liststacks
      outputParameters:
      - type: object
        mapping: $.
    - name: create-stack
      description: Create Stack
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: zenml-stacks.createstack
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-stack
      description: Get Stack
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zenml-stacks.getstack
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-stack
      description: Delete Stack
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: zenml-stacks.deletestack
      outputParameters:
      - type: object
        mapping: $.