New260+ blocks and 240+ tools are now fully documented
Tool

Databricks

Execute SQL queries, manage jobs, and interact with Databricks workspaces

Full Databricks integration — run SQL against SQL warehouses, trigger and monitor job runs, list clusters, and browse Unity Catalog catalogs. Use it to weave Databricks data pipelines and analytics into any automated workflow.

Overview

PropertyValue
Typedatabricks
CategoryTool — Database
AuthPersonal Access Token (Bearer)

Operations

OperationTool IDDescription
Execute SQLdatabricks_execute_sqlExecute a SQL statement against a SQL warehouse and return results inline
List Clustersdatabricks_list_clustersList all clusters in the workspace with state and configuration
List Jobsdatabricks_list_jobsList jobs defined in the workspace (paginated)
Run Jobdatabricks_run_jobTrigger a one-time run of a named job and return the run ID
Get Run Statusdatabricks_get_run_statusPoll the status and result of a job run by its run ID
List Catalogsdatabricks_list_catalogsList Unity Catalog catalogs in the workspace

Configuration

SettingTypeRequiredDescription
hoststringYesDatabricks workspace URL, e.g. https://your-workspace.azuredatabricks.net. Secret — use {{DATABRICKS_HOST}}.
tokenstringYesDatabricks Personal Access Token (starts with dapi). Secret — use {{DATABRICKS_TOKEN}}.
warehouseIdstringYes (Execute SQL only)The ID of the SQL warehouse to run statements against.
statementstringYes (Execute SQL only)The SQL statement to execute, e.g. SELECT * FROM catalog.schema.table LIMIT 100.
jobIdstringYes (Run Job / Get Run Status)For Run Job: the numeric job ID to trigger. For Get Run Status: the run ID returned by a prior Run Job call.
limitnumberNo (List Jobs only)Maximum number of jobs to return. Defaults to 20.

Outputs

Execute SQL (databricks_execute_sql)

FieldTypeDescription
statementIdstringUnique ID of the executed statement.
statusstringExecution status: SUCCEEDED, FAILED, CANCELED, etc.
columnsjsonColumn schema — array of objects with name, position, and typeName.
rowsjsonResult rows as a 2-D array (row-major). null if no results.
totalRowsnumberTotal number of result rows. null when unavailable.

List Clusters (databricks_list_clusters)

FieldTypeDescription
clustersjsonArray of cluster objects, each with clusterId, name, state, source, sparkVersion, nodeTypeId, and numWorkers.

List Jobs (databricks_list_jobs)

FieldTypeDescription
jobsjsonArray of job objects, each with jobId and name.
hasMorebooleantrue when additional jobs exist beyond the current page.

Run Job (databricks_run_job)

FieldTypeDescription
runIdnumberThe ID of the triggered run. Pass to Get Run Status to poll completion.
numberInJobnumberSequential run number within the job. May be null.

Get Run Status (databricks_get_run_status)

FieldTypeDescription
runIdnumberRun ID.
jobIdnumberJob ID that owns this run.
runNamestringDisplay name of the run.
lifeCycleStatestringCurrent lifecycle state: PENDING, RUNNING, TERMINATING, TERMINATED, SKIPPED, INTERNAL_ERROR.
resultStatestringFinal result state when terminated: SUCCESS, FAILED, TIMEDOUT, CANCELED. null while still running.
stateMessagestringHuman-readable status message.
startTimenumberRun start time as epoch milliseconds. null if not yet started.
endTimenumberRun end time as epoch milliseconds. null if not yet finished.
runPageUrlstringDirect URL to view the run in the Databricks UI.

List Catalogs (databricks_list_catalogs)

FieldTypeDescription
catalogsjsonArray of Unity Catalog catalog objects, each with name, comment, and catalogType.

Example

[Starter] → [Databricks: Execute SQL] → [Agent: summarize the results]

Connect the block with your workspace credentials stored as environment variables — set host to {{DATABRICKS_HOST}} and token to {{DATABRICKS_TOKEN}}. Point warehouseId at a running SQL warehouse (e.g. {{DATABRICKS_WAREHOUSE_ID}}), then write a statement like SELECT * FROM main.sales.orders WHERE date = '{{starter.date}}' LIMIT 500. The Agent block can then receive {{databricks.rows}} and {{databricks.columns}} to produce a plain-language summary or drive downstream decisions.

Tips

  • Personal Access Token — generate one from Databricks Settings → Developer → Access Tokens. Tokens start with dapi. Store it as an environment secret and reference it with {{DATABRICKS_TOKEN}} rather than pasting it inline.
  • Execute SQL uses wait_timeout: 50s and INLINE disposition — it blocks until results are ready (up to 50 s). For long-running queries, prefer a Notebook job triggered with Run Job and polled with Get Run Status.
  • Run Job + Get Run Status pair naturally in a workflow: use Run Job to get runId, then use a Wait block or loop to call Get Run Status until lifeCycleState reaches TERMINATED and check resultState for SUCCESS.
  • List Jobs defaults to 20 results; set limit higher (up to the API maximum of 100) and check hasMore to know whether to paginate.
  • List Catalogs requires Unity Catalog to be enabled on the workspace. Classic Hive Metastore workspaces will return an empty array.