Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Databricks Workspace

Scalekit connector
Open markdown

The Databricks Workspace connector lets your AI agent work with Databricks Workspace. You connect it once with a service principal, and Scalekit authenticates every call, so your agent never handles credentials. It comes with 53 tools.

Tools
53
What they doRead · write · destructive
28 · 18 · 728 read18 write7 destructive
Users sign in with

What you can do

  • Run SQL queries: execute SQL on a SQL warehouse, fetch results, and cancel running statements
  • Explore data: browse Unity Catalog catalogs, schemas, tables, and columns, including key constraints
  • Manage jobs: create and delete jobs, trigger runs, and check run status and results
  • Manage clusters and warehouses: create, resize, start, restart, and terminate clusters, and start or stop SQL warehouses
  • Work with notebooks and files: list, import, export, and delete notebooks, and read or write files in DBFS
  • Manage repos and secrets: clone Git repos, switch branches, and store secrets in secret scopes

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Databricks Workspace connection

    In AgentKit > Connections, create a Databricks Workspace connection. The name you give it is the connection_name your code passes. See Configure connections.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • databricksworkspace_cluster_getGet details of a specific Databricks cluster by cluster ID.Read-only

    Get Cluster

    Get details of a specific Databricks cluster by cluster ID.

    Inputs

    cluster_idstringrequired
    The unique identifier of the cluster.
  • databricksworkspace_clusters_listList all clusters in the Databricks workspace.Read-only

    List Clusters

    List all clusters in the Databricks workspace.

    Inputs

    This tool takes no inputs.

  • databricksworkspace_dbfs_listList the contents of a directory on the Databricks File System (DBFS).Read-only

    List DBFS Directory

    List the contents of a directory on the Databricks File System (DBFS).

    Inputs

    pathstringrequired
    The DBFS path to list.
  • databricksworkspace_dbfs_readRead up to 1 MB of a file's contents from the Databricks File System (DBFS).Read-only

    Read DBFS File

    Read up to 1 MB of a file's contents from the Databricks File System (DBFS). The response returns the content base64-encoded. Use offset and length to page through larger files.

    Inputs

    pathstringrequired
    The DBFS path of the file to read.
    lengthinteger
    Number of bytes to read, starting at offset. Maximum is 1,048,576 (1 MB).
    offsetinteger
    Byte offset to start reading from.
  • databricksworkspace_information_schema_columnsList columns for a table using INFORMATION_SCHEMA.COLUMNS.Read-only

    List Columns (INFORMATION_SCHEMA)

    List columns for a table using INFORMATION_SCHEMA.COLUMNS. Returns column name, data type, nullability, numeric precision/scale, max char length, and comment.

    Inputs

    catalogstringrequired
    The catalog containing the table.
    schemastringrequired
    The schema containing the table.
    tablestringrequired
    The table to list columns for.
    warehouse_idstringrequired
    The ID of the SQL warehouse to run the query on.
  • databricksworkspace_information_schema_schemataList all schemas within a catalog using INFORMATION_SCHEMA.SCHEMATA.Read-only

    List Schemas (INFORMATION_SCHEMA)

    List all schemas within a catalog using INFORMATION_SCHEMA.SCHEMATA. Used for schema discovery during setup.

    Inputs

    catalogstringrequired
    The catalog to list schemas from.
    warehouse_idstringrequired
    The ID of the SQL warehouse to run the query on.
  • databricksworkspace_information_schema_table_constraintsList PRIMARY KEY and FOREIGN KEY constraints for tables in a schema using INFORMATION_SCHEMA.TABLE_CONSTRAINTS.Read-only

    List Table Constraints (INFORMATION_SCHEMA)

    List PRIMARY KEY and FOREIGN KEY constraints for tables in a schema using INFORMATION_SCHEMA.TABLE_CONSTRAINTS. Used to auto-detect join keys.

    Inputs

    catalogstringrequired
    The catalog containing the schema.
    schemastringrequired
    The schema to list constraints from.
    warehouse_idstringrequired
    The ID of the SQL warehouse to run the query on.
  • databricksworkspace_information_schema_tablesList tables and views in a schema using INFORMATION_SCHEMA.TABLES.Read-only

    List Tables (INFORMATION_SCHEMA)

    List tables and views in a schema using INFORMATION_SCHEMA.TABLES. Returns table name, type (MANAGED, EXTERNAL, VIEW, etc.), and comment for schema discovery.

    Inputs

    catalogstringrequired
    The catalog to query INFORMATION_SCHEMA from.
    schemastringrequired
    The schema to list tables from.
    warehouse_idstringrequired
    The ID of the SQL warehouse to run the query on.