Databricks · Capability

Databricks REST API — Workspace

Databricks REST API — Workspace. 6 operations. Lead operation: Databricks Delete a Workspace Object. Self-contained Naftiko capability covering one Databricks business surface.

Run with Naftiko DatabricksWorkspace

What You Can Do

POST
Deleteworkspaceobject — Databricks Delete a Workspace Object
/v1/2-0/workspace/delete
GET
Exportworkspaceobject — Databricks Export a Workspace Object
/v1/2-0/workspace/export
GET
Getworkspaceobjectstatus — Databricks Get Workspace Object Status
/v1/2-0/workspace/get-status
POST
Importworkspaceobject — Databricks Import a Workspace Object
/v1/2-0/workspace/import
GET
Listworkspaceobjects — Databricks List Workspace Objects
/v1/2-0/workspace/list
POST
Createworkspacedirectory — Databricks Create a Directory
/v1/2-0/workspace/mkdirs

MCP Tools

databricks-delete-workspace-object

Databricks Delete a Workspace Object

databricks-export-workspace-object

Databricks Export a Workspace Object

read-only idempotent
databricks-get-workspace-object-status

Databricks Get Workspace Object Status

read-only idempotent
databricks-import-workspace-object

Databricks Import a Workspace Object

databricks-list-workspace-objects

Databricks List Workspace Objects

read-only idempotent
databricks-create-directory

Databricks Create a Directory

Capability Spec

databricks-workspace.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Databricks REST API — Workspace
  description: 'Databricks REST API — Workspace. 6 operations. Lead operation: Databricks Delete a Workspace Object. Self-contained
    Naftiko capability covering one Databricks business surface.'
  tags:
  - Databricks
  - Workspace
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DATABRICKS_API_KEY: DATABRICKS_API_KEY
capability:
  consumes:
  - type: http
    namespace: databricks-workspace
    baseUri: https://{workspace_host}/api
    description: Databricks REST API — Workspace business capability. Self-contained, no shared references.
    resources:
    - name: 2.0-workspace-delete
      path: /2.0/workspace/delete
      operations:
      - name: deleteworkspaceobject
        method: POST
        description: Databricks Delete a Workspace Object
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: 2.0-workspace-export
      path: /2.0/workspace/export
      operations:
      - name: exportworkspaceobject
        method: GET
        description: Databricks Export a Workspace Object
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: path
          in: query
          type: string
          description: The absolute path of the object or directory to export. Must start with /.
          required: true
        - name: format
          in: query
          type: string
          description: The format in which to export the notebook. The default is SOURCE.
        - name: direct_download
          in: query
          type: boolean
          description: Whether to download the file directly. If true, the response is the exported content.
    - name: 2.0-workspace-get-status
      path: /2.0/workspace/get-status
      operations:
      - name: getworkspaceobjectstatus
        method: GET
        description: Databricks Get Workspace Object Status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: path
          in: query
          type: string
          description: The absolute path of the workspace object. Must start with /.
          required: true
    - name: 2.0-workspace-import
      path: /2.0/workspace/import
      operations:
      - name: importworkspaceobject
        method: POST
        description: Databricks Import a Workspace Object
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: 2.0-workspace-list
      path: /2.0/workspace/list
      operations:
      - name: listworkspaceobjects
        method: GET
        description: Databricks List Workspace Objects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: path
          in: query
          type: string
          description: The absolute path of the workspace directory to list. Must start with /.
          required: true
        - name: notebooks_modified_after
          in: query
          type: integer
          description: If provided, only notebooks modified after this timestamp (epoch seconds) are returned.
    - name: 2.0-workspace-mkdirs
      path: /2.0/workspace/mkdirs
      operations:
      - name: createworkspacedirectory
        method: POST
        description: Databricks Create a Directory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.DATABRICKS_API_KEY}}'
  exposes:
  - type: rest
    namespace: databricks-workspace-rest
    port: 8080
    description: REST adapter for Databricks REST API — Workspace. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/2-0/workspace/delete
      name: 2-0-workspace-delete
      description: REST surface for 2.0-workspace-delete.
      operations:
      - method: POST
        name: deleteworkspaceobject
        description: Databricks Delete a Workspace Object
        call: databricks-workspace.deleteworkspaceobject
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/2-0/workspace/export
      name: 2-0-workspace-export
      description: REST surface for 2.0-workspace-export.
      operations:
      - method: GET
        name: exportworkspaceobject
        description: Databricks Export a Workspace Object
        call: databricks-workspace.exportworkspaceobject
        with:
          path: rest.path
          format: rest.format
          direct_download: rest.direct_download
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/2-0/workspace/get-status
      name: 2-0-workspace-get-status
      description: REST surface for 2.0-workspace-get-status.
      operations:
      - method: GET
        name: getworkspaceobjectstatus
        description: Databricks Get Workspace Object Status
        call: databricks-workspace.getworkspaceobjectstatus
        with:
          path: rest.path
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/2-0/workspace/import
      name: 2-0-workspace-import
      description: REST surface for 2.0-workspace-import.
      operations:
      - method: POST
        name: importworkspaceobject
        description: Databricks Import a Workspace Object
        call: databricks-workspace.importworkspaceobject
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/2-0/workspace/list
      name: 2-0-workspace-list
      description: REST surface for 2.0-workspace-list.
      operations:
      - method: GET
        name: listworkspaceobjects
        description: Databricks List Workspace Objects
        call: databricks-workspace.listworkspaceobjects
        with:
          path: rest.path
          notebooks_modified_after: rest.notebooks_modified_after
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/2-0/workspace/mkdirs
      name: 2-0-workspace-mkdirs
      description: REST surface for 2.0-workspace-mkdirs.
      operations:
      - method: POST
        name: createworkspacedirectory
        description: Databricks Create a Directory
        call: databricks-workspace.createworkspacedirectory
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: databricks-workspace-mcp
    port: 9090
    transport: http
    description: MCP adapter for Databricks REST API — Workspace. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: databricks-delete-workspace-object
      description: Databricks Delete a Workspace Object
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: databricks-workspace.deleteworkspaceobject
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: databricks-export-workspace-object
      description: Databricks Export a Workspace Object
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: databricks-workspace.exportworkspaceobject
      with:
        path: tools.path
        format: tools.format
        direct_download: tools.direct_download
      outputParameters:
      - type: object
        mapping: $.
    - name: databricks-get-workspace-object-status
      description: Databricks Get Workspace Object Status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: databricks-workspace.getworkspaceobjectstatus
      with:
        path: tools.path
      outputParameters:
      - type: object
        mapping: $.
    - name: databricks-import-workspace-object
      description: Databricks Import a Workspace Object
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: databricks-workspace.importworkspaceobject
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: databricks-list-workspace-objects
      description: Databricks List Workspace Objects
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: databricks-workspace.listworkspaceobjects
      with:
        path: tools.path
        notebooks_modified_after: tools.notebooks_modified_after
      outputParameters:
      - type: object
        mapping: $.
    - name: databricks-create-directory
      description: Databricks Create a Directory
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: databricks-workspace.createworkspacedirectory
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.