Databricks

Databricks is a unified data analytics platform built on Apache Spark, providing a collaborative environment for data engineering, data science, and machine learning. Databricks combines data warehousing, ETL, and AI workloads into a single lakehouse architecture, with support for SQL analytics, job orchestration, and cluster management across major cloud providers.

With the Databricks integration in Agent Serve, you can:

  • Execute SQL queries: Run SQL statements against Databricks SQL warehouses with support for parameterized queries and Unity Catalog
  • Manage jobs: List, trigger, and monitor Databricks job runs programmatically
  • Track run status: Get detailed run information including timing, state, and output results
  • Control clusters: List and inspect cluster configurations, states, and resource details
  • Retrieve run outputs: Access notebook results, error messages, and logs from completed job runs

In Agent Serve, the Databricks integration enables your agents to interact with your data lakehouse as part of automated workflows. Agents can query large-scale datasets, orchestrate ETL pipelines by triggering jobs, monitor job execution, and retrieve results—all without leaving the workflow canvas. This is ideal for automated reporting, data pipeline management, scheduled analytics, and building AI-driven data workflows that react to query results or job outcomes.

Usage Instructions

Execute parameterized SQL and retrieve result chunks, create and manage jobs, submit and repair runs, manage compute clusters and SQL warehouses, and create or update Genie spaces. Ask Genie questions or run agent research, inspect conversations, and retrieve query results and charts. Connect with a personal access token and workspace host URL.

Actions

Databricks Execute SQL

Execute a SQL statement against a Databricks SQL warehouse and return results inline. Supports parameterized queries and Unity Catalog.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesThe ID of the SQL warehouse to execute against
statementstringYesThe SQL statement to execute (max 16 MiB)
catalogstringNoUnity Catalog name (equivalent to USE CATALOG)
schemastringNoSchema name (equivalent to USE SCHEMA)
rowLimitnumberNoMaximum number of rows to return
sqlParametersjsonNoNamed parameters as [{name, value, type}]; null or omitted value represents SQL NULL
byteLimitnumberNoMaximum result size in bytes; truncation is reported in the output
onWaitTimeoutstringNoCONTINUE (default) or CANCEL execution when the wait timeout expires
waitTimeoutstringNoHow long the warehouse waits before answering (e.g., "50s"). Range: "0s" or "5s" to "50s". Default: "50s". A statement still PENDING/RUNNING after that is polled for up to 4 more minutes before the result is returned.

Output

ParameterTypeDescription
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated
statementIdstringSQL statement ID of the query
statusstringStatement status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED)

Databricks Get Statement

Poll a SQL statement by its ID to retrieve status and results. Use this after Execute SQL when a query runs longer than the wait timeout.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringNoSQL warehouse identifier, when required by the statement endpoint
statementIdstringYesThe ID of the statement to fetch (returned by Execute SQL)

Output

ParameterTypeDescription
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated
statementIdstringSQL statement ID of the query
statusstringStatement status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED)

Databricks Get Statement Chunk

Retrieve one chunk of an INLINE SQL result using nextChunkIndex from Execute SQL or Get Statement.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
statementIdstringYesSQL statement identifier
chunkIndexnumberYesZero-based result chunk index
warehouseIdstringNoSQL warehouse identifier, when required by the statement endpoint

Output

ParameterTypeDescription
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null

Databricks Cancel Statement

Request cancellation of an executing SQL statement; poll Get Statement to confirm its final status.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
statementIdstringYesSQL statement identifier
warehouseIdstringNoSQL warehouse identifier, when required by the statement endpoint

Output

ParameterTypeDescription
successbooleanWhether the cancellation request was accepted

Databricks List Jobs

List all jobs in a Databricks workspace with optional filtering by name.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
limitnumberNoMaximum number of jobs to return (range 1-100, default 20)
pageTokenstringNoToken for the next or previous page; takes precedence over legacy offset
offsetnumberNoLegacy Jobs 2.1 offset; prefer pageToken
namestringNoFilter jobs by exact name (case-insensitive)
expandTasksbooleanNoInclude task and cluster details in the response (max 100 elements)

Output

ParameterTypeDescription
prevPageTokenstringToken for the previous page
jobsarrayList of jobs in the workspace
↳ tasksarrayTask definitions and task run IDs; nested keys use Databricks API names
↳ task_keystringTask key
↳ run_idnumberTask run ID for Get Run Output
↳ descriptionstringTask description
↳ depends_onarraydepends_on output from the tool
↳ task_keystringUpstream task key
↳ outcomestringRequired outcome of a condition task
↳ existing_cluster_idstringExisting compute cluster
↳ job_cluster_keystringShared job cluster key
↳ notebook_taskobjectnotebook_task output from the tool
↳ notebook_pathstringNotebook path
↳ sourcestringWORKSPACE or GIT
↳ base_parametersobjectNotebook parameter map
↳ spark_python_taskobjectspark_python_task output from the tool
↳ python_filestringPython file path or cloud URI
↳ sourcestringWORKSPACE or GIT
↳ parametersarrayparameters output from the tool
↳ spark_jar_taskobjectspark_jar_task output from the tool
↳ main_class_namestringJAR entry point class
↳ parametersarrayparameters output from the tool
↳ jar_uristringLegacy JAR URI
↳ spark_submit_taskobjectLegacy spark-submit task
↳ parametersarrayparameters output from the tool
↳ python_wheel_taskobjectpython_wheel_task output from the tool
↳ package_namestringPython package name
↳ entry_pointstringPackage entry point
↳ parametersarrayparameters output from the tool
↳ named_parametersobjectNamed wheel parameters
↳ sql_taskobjectsql_task output from the tool
↳ warehouse_idstringSQL warehouse identifier
↳ parametersobjectSQL parameters
↳ queryobjectquery output from the tool
↳ query_idstringSaved query identifier
↳ fileobjectfile output from the tool
↳ pathstringSQL file path
↳ sourcestringWORKSPACE or GIT
↳ alertobjectalert output from the tool
↳ alert_idstringSQL alert identifier
↳ subscriptionsarraysubscriptions output from the tool
↳ pause_subscriptionsbooleanpause_subscriptions output from the tool
↳ dashboardobjectdashboard output from the tool
↳ dashboard_idstringLegacy SQL dashboard identifier
↳ subscriptionsarraysubscriptions output from the tool
↳ custom_subjectstringcustom_subject output from the tool
↳ pause_subscriptionsbooleanpause_subscriptions output from the tool
↳ run_job_taskobjectrun_job_task output from the tool
↳ job_idnumberNested job identifier
↳ job_parametersobjectNested job parameters
↳ pipeline_paramsobjectPipeline refresh settings
↳ pipeline_taskobjectpipeline_task output from the tool
↳ pipeline_idstringPipeline identifier
↳ parametersobjectparameters output from the tool
↳ full_refreshbooleanfull_refresh output from the tool
↳ refresh_selectionarrayrefresh_selection output from the tool
↳ full_refresh_selectionarrayfull_refresh_selection output from the tool
↳ reset_checkpoint_selectionarrayreset_checkpoint_selection output from the tool
↳ refresh_flow_selectionarrayrefresh_flow_selection output from the tool
↳ dbt_taskobjectdbt_task output from the tool
↳ commandsarraydbt commands
↳ project_directorystringproject_directory output from the tool
↳ profiles_directorystringprofiles_directory output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ catalogstringcatalog output from the tool
↳ schemastringschema output from the tool
↳ sourcestringWORKSPACE or GIT
↳ condition_taskobjectcondition_task output from the tool
↳ opstringComparison operator
↳ leftstringLeft operand
↳ rightstringRight operand
↳ outcomestringEvaluation result: true or false
↳ for_each_taskobjectfor_each_task output from the tool
↳ inputsstringJSON array or parameter reference to iterate over
↳ concurrencynumberconcurrency output from the tool
↳ taskobjectNested task definition
↳ clean_rooms_notebook_taskobjectclean_rooms_notebook_task output from the tool
↳ clean_room_namestringclean_room_name output from the tool
↳ notebook_namestringnotebook_name output from the tool
↳ etagstringetag output from the tool
↳ notebook_base_parametersobjectnotebook_base_parameters output from the tool
↳ dashboard_taskobjectdashboard_task output from the tool
↳ dashboard_idstringdashboard_id output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ subscriptionobjectsubscription output from the tool
↳ filtersobjectfilters output from the tool
↳ alert_taskobjectalert_task output from the tool
↳ alert_idstringalert_id output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ workspace_pathstringworkspace_path output from the tool
↳ subscribersarraysubscribers output from the tool
↳ power_bi_taskobjectpower_bi_task output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ connection_resource_namestringconnection_resource_name output from the tool
↳ refresh_after_updatebooleanrefresh_after_update output from the tool
↳ power_bi_modelobjectpower_bi_model output from the tool
↳ tablesarraytables output from the tool
↳ stateobjectstate output from the tool
↳ life_cycle_statestringlife_cycle_state output from the tool
↳ result_statestringresult_state output from the tool
↳ state_messagestringstate_message output from the tool
↳ resolved_valuesobjectResolved task parameters keyed by task type (notebook_task, spark_python_task, sql_task, and other task variants)
↳ start_timenumberTask start in epoch milliseconds
↳ end_timenumberTask end in epoch milliseconds
↳ run_page_urlstringTask run URL
↳ jobClustersarrayShared job compute definitions
↳ job_cluster_keystringCluster reference key
↳ new_clusterobjectCloud-dependent compute configuration
↳ spark_versionstringspark_version output from the tool
↳ node_type_idstringnode_type_id output from the tool
↳ num_workersnumbernum_workers output from the tool
↳ autoscaleobjectautoscale output from the tool
↳ min_workersnumbermin_workers output from the tool
↳ max_workersnumbermax_workers output from the tool
↳ hasMorebooleanWhether tasks or job clusters have additional pages
↳ jobIdnumberUnique job identifier
↳ namestringJob name
↳ createdTimenumberJob creation timestamp (epoch ms)
↳ creatorUserNamestringEmail of the job creator
↳ maxConcurrentRunsnumberMaximum number of concurrent runs
↳ formatstringJob format (SINGLE_TASK or MULTI_TASK)
hasMorebooleanWhether more jobs are available for pagination
nextPageTokenstringToken for fetching the next page of results

Databricks Get Job

Get the full definition and settings of a single Databricks job by its job ID.

Input

ParameterTypeRequiredDescription
includeTriggerStatebooleanNoInclude current job trigger state
pageTokenstringNoToken for the next page of tasks and job clusters
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesThe canonical identifier of the job to retrieve

Output

ParameterTypeDescription
tasksarrayTask definitions and task run IDs; nested keys use Databricks API names
↳ task_keystringTask key
↳ run_idnumberTask run ID for Get Run Output
↳ descriptionstringTask description
↳ depends_onarraydepends_on output from the tool
↳ task_keystringUpstream task key
↳ outcomestringRequired outcome of a condition task
↳ existing_cluster_idstringExisting compute cluster
↳ job_cluster_keystringShared job cluster key
↳ notebook_taskobjectnotebook_task output from the tool
↳ notebook_pathstringNotebook path
↳ sourcestringWORKSPACE or GIT
↳ base_parametersobjectNotebook parameter map
↳ spark_python_taskobjectspark_python_task output from the tool
↳ python_filestringPython file path or cloud URI
↳ sourcestringWORKSPACE or GIT
↳ parametersarrayparameters output from the tool
↳ spark_jar_taskobjectspark_jar_task output from the tool
↳ main_class_namestringJAR entry point class
↳ parametersarrayparameters output from the tool
↳ jar_uristringLegacy JAR URI
↳ spark_submit_taskobjectLegacy spark-submit task
↳ parametersarrayparameters output from the tool
↳ python_wheel_taskobjectpython_wheel_task output from the tool
↳ package_namestringPython package name
↳ entry_pointstringPackage entry point
↳ parametersarrayparameters output from the tool
↳ named_parametersobjectNamed wheel parameters
↳ sql_taskobjectsql_task output from the tool
↳ warehouse_idstringSQL warehouse identifier
↳ parametersobjectSQL parameters
↳ queryobjectquery output from the tool
↳ query_idstringSaved query identifier
↳ fileobjectfile output from the tool
↳ pathstringSQL file path
↳ sourcestringWORKSPACE or GIT
↳ alertobjectalert output from the tool
↳ alert_idstringSQL alert identifier
↳ subscriptionsarraysubscriptions output from the tool
↳ pause_subscriptionsbooleanpause_subscriptions output from the tool
↳ dashboardobjectdashboard output from the tool
↳ dashboard_idstringLegacy SQL dashboard identifier
↳ subscriptionsarraysubscriptions output from the tool
↳ custom_subjectstringcustom_subject output from the tool
↳ pause_subscriptionsbooleanpause_subscriptions output from the tool
↳ run_job_taskobjectrun_job_task output from the tool
↳ job_idnumberNested job identifier
↳ job_parametersobjectNested job parameters
↳ pipeline_paramsobjectPipeline refresh settings
↳ pipeline_taskobjectpipeline_task output from the tool
↳ pipeline_idstringPipeline identifier
↳ parametersobjectparameters output from the tool
↳ full_refreshbooleanfull_refresh output from the tool
↳ refresh_selectionarrayrefresh_selection output from the tool
↳ full_refresh_selectionarrayfull_refresh_selection output from the tool
↳ reset_checkpoint_selectionarrayreset_checkpoint_selection output from the tool
↳ refresh_flow_selectionarrayrefresh_flow_selection output from the tool
↳ dbt_taskobjectdbt_task output from the tool
↳ commandsarraydbt commands
↳ project_directorystringproject_directory output from the tool
↳ profiles_directorystringprofiles_directory output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ catalogstringcatalog output from the tool
↳ schemastringschema output from the tool
↳ sourcestringWORKSPACE or GIT
↳ condition_taskobjectcondition_task output from the tool
↳ opstringComparison operator
↳ leftstringLeft operand
↳ rightstringRight operand
↳ outcomestringEvaluation result: true or false
↳ for_each_taskobjectfor_each_task output from the tool
↳ inputsstringJSON array or parameter reference to iterate over
↳ concurrencynumberconcurrency output from the tool
↳ taskobjectNested task definition
↳ clean_rooms_notebook_taskobjectclean_rooms_notebook_task output from the tool
↳ clean_room_namestringclean_room_name output from the tool
↳ notebook_namestringnotebook_name output from the tool
↳ etagstringetag output from the tool
↳ notebook_base_parametersobjectnotebook_base_parameters output from the tool
↳ dashboard_taskobjectdashboard_task output from the tool
↳ dashboard_idstringdashboard_id output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ subscriptionobjectsubscription output from the tool
↳ filtersobjectfilters output from the tool
↳ alert_taskobjectalert_task output from the tool
↳ alert_idstringalert_id output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ workspace_pathstringworkspace_path output from the tool
↳ subscribersarraysubscribers output from the tool
↳ power_bi_taskobjectpower_bi_task output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ connection_resource_namestringconnection_resource_name output from the tool
↳ refresh_after_updatebooleanrefresh_after_update output from the tool
↳ power_bi_modelobjectpower_bi_model output from the tool
↳ tablesarraytables output from the tool
↳ stateobjectstate output from the tool
↳ life_cycle_statestringlife_cycle_state output from the tool
↳ result_statestringresult_state output from the tool
↳ state_messagestringstate_message output from the tool
↳ resolved_valuesobjectResolved task parameters keyed by task type (notebook_task, spark_python_task, sql_task, and other task variants)
↳ start_timenumberTask start in epoch milliseconds
↳ end_timenumberTask end in epoch milliseconds
↳ run_page_urlstringTask run URL
jobClustersarrayShared job compute definitions
↳ job_cluster_keystringCluster reference key
↳ new_clusterobjectCloud-dependent compute configuration
↳ spark_versionstringspark_version output from the tool
↳ node_type_idstringnode_type_id output from the tool
↳ num_workersnumbernum_workers output from the tool
↳ autoscaleobjectautoscale output from the tool
↳ min_workersnumbermin_workers output from the tool
↳ max_workersnumbermax_workers output from the tool
descriptionstringJob description
parametersarrayJob parameter definitions
queueobjectJob queue settings
triggerStateobjectCurrent file-arrival, table-update, or periodic trigger state
↳ file_arrivalobjectfile_arrival output from the tool
↳ tableobjecttable output from the tool
↳ last_seen_table_statesarraylast_seen_table_states output from the tool
nextPageTokenstringToken for the next page of tasks or job clusters
jobIdnumberThe job ID
namestringJob name
creatorUserNamestringEmail of the job creator
runAsUserNamestringUser the job runs as
createdTimenumberJob creation timestamp (epoch ms)
formatstringJob format (SINGLE_TASK or MULTI_TASK)
maxConcurrentRunsnumberMaximum number of concurrent runs
timeoutSecondsnumberJob-level timeout in seconds (0 or null means no timeout)
scheduleobjectCron schedule configuration (quartz_cron_expression, timezone_id, pause_status)
tagsobjectKey-value tags applied to the job

Databricks Create Job

Create a Databricks job with tasks, scheduling, execution identity, and notifications.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
accessControlListjsonNoInitial permissions as [{user_name, group_name, service_principal_name, permission_level}]
namestringNoDisplay name of the job
descriptionstringNoDescription of the job
emailNotificationsjsonNoEmail recipients by event, such as {on_failure: ["ops@example.com"]}
webhookNotificationsjsonNoNotification destination IDs grouped by event
notificationSettingsjsonNoNotification preferences for skipped runs, canceled runs, and retries
timeoutSecondsnumberNoMaximum run duration in seconds; 0 disables the timeout
healthjsonNoHealth rules as {rules: [{metric, op, value}]}
schedulejsonNoQuartz schedule as {quartz_cron_expression, timezone_id, pause_status}
jobTriggerjsonNoJob trigger settings in Databricks API format
continuousjsonNoContinuous execution settings; mutually exclusive with schedule
maxConcurrentRunsnumberNoMaximum simultaneous runs allowed for this job
tasksjsonNoTask definitions using Databricks API fields, including task_key, depends_on, and notebook_task or other task types
jobClustersjsonNoShared job clusters as [{job_cluster_key, new_cluster}]
gitSourcejsonNoGit repository URL, provider, and branch, tag, or commit
tagsjsonNoJob tags as a JSON object of string keys and values
queuejsonNoQueue behavior as {enabled: true} or {enabled: false}
parametersjsonNoJob parameter definitions as [{name, default}]
runAsjsonNoExecution identity as {user_name} or {service_principal_name}
editModestringNoWhether the job can be edited in the Databricks UI
deploymentjsonNoExternal deployment metadata including kind and metadata_file_path
environmentsjsonNoTask environments as [{environment_key, spec}]
budgetPolicyIdstringNoServerless budget policy identifier
performanceTargetstringNoServerless performance mode: STANDARD or PERFORMANCE_OPTIMIZED
triggersjsonNoJob trigger definitions; cannot be combined with the singular trigger setting
environmentVariablesjsonNoNamed environment variable definitions in Databricks API format
maxRetriesnumberNoMaximum retry count; -1 retries indefinitely and 0 disables retries
minRetryIntervalMillisnumberNoMinimum time in milliseconds between attempts
retryOnTimeoutbooleanNoWhether a timed-out run should be retried
disableAutoOptimizationbooleanNoDisable serverless automatic optimization

Output

ParameterTypeDescription
jobIdnumberJob identifier

Databricks Update Job

Merge selected settings into a Databricks job and optionally remove settings or tasks.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesJob identifier
newSettingsjsonNoJob settings in Databricks API format; Update merges top-level fields and task keys, Reset replaces all settings
fieldsToRemovejsonNoSettings to remove, such as ["schedule", "tasks/task_key"]

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Reset Job

Replace all settings of a Databricks job.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesJob identifier
newSettingsjsonYesJob settings in Databricks API format; Update merges top-level fields and task keys, Reset replaces all settings

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Delete Job

Delete a Databricks job and cancel its active runs.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesJob identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Run Job

Trigger an existing Databricks job to run immediately with optional job-level or notebook parameters.

Input

ParameterTypeRequiredDescription
onlyjsonNoTask keys to run; omit to run every task
queuejsonNoRun queue settings as {enabled: true} or {enabled: false}
performanceTargetstringNoServerless performance: STANDARD or PERFORMANCE_OPTIMIZED
pipelineParamsjsonNoPipeline full_refresh and selective table or flow settings
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesThe ID of the job to trigger
jobParametersjsonNoJob-level parameter overrides as a JSON object (e.g., {"key": "value"})
notebookParamsjsonNoNotebook task parameters as a JSON object (e.g., {"param1": "value1"})
idempotencyTokenstringNoIdempotency token to prevent duplicate runs (max 64 characters)

Output

ParameterTypeDescription
runIdnumberThe globally unique ID of the triggered run
numberInJobnumberThe sequence number of this run among all runs of the job

Databricks Submit Run

Submit a one-time task run without creating a saved job.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
accessControlListjsonNoInitial permissions as [{user_name, group_name, service_principal_name, permission_level}]
queuejsonNoQueue behavior as {enabled: true} or {enabled: false}
runAsjsonNoExecution identity as {user_name} or {service_principal_name}
runNamestringNoDisplay name of the one-time run
timeoutSecondsnumberNoMaximum run duration in seconds; 0 disables the timeout
healthjsonNoHealth rules as {rules: [{metric, op, value}]}
idempotencyTokenstringNoRetry token that prevents duplicate runs; at most 64 characters
tasksjsonNoTask definitions using Databricks API fields, including task_key, depends_on, and notebook_task or other task types
gitSourcejsonNoGit repository URL, provider, and branch, tag, or commit
webhookNotificationsjsonNoNotification destination IDs grouped by event
emailNotificationsjsonNoEmail recipients by event, such as {on_failure: ["ops@example.com"]}
notificationSettingsjsonNoNotification preferences for skipped runs, canceled runs, and retries
environmentsjsonNoTask environments as [{environment_key, spec}]
budgetPolicyIdstringNoServerless budget policy identifier
environmentVariablesjsonNoNamed environment variable definitions in Databricks API format
performanceTargetstringNoServerless performance mode: STANDARD or PERFORMANCE_OPTIMIZED

Output

ParameterTypeDescription
runIdnumberRun identifier

Databricks List Runs

List job runs in a Databricks workspace with optional filtering by job, status, and time range.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberNoFilter runs by job ID. Omit to list runs across all jobs
activeOnlybooleanNoOnly include active runs (PENDING, RUNNING, or TERMINATING)
completedOnlybooleanNoOnly include completed runs
limitnumberNoMaximum number of runs to return (range 1-24, default 20)
pageTokenstringNoToken for the next or previous page; takes precedence over legacy offset
offsetnumberNoLegacy Jobs 2.1 offset; prefer pageToken
expandTasksbooleanNoInclude the first 100 tasks and job clusters for each run
runTypestringNoFilter by run type (JOB_RUN, WORKFLOW_RUN, SUBMIT_RUN)
startTimeFromnumberNoFilter runs started at or after this timestamp (epoch ms)
startTimeTonumberNoFilter runs started at or before this timestamp (epoch ms)

Output

ParameterTypeDescription
prevPageTokenstringToken for the previous page
runsarrayList of job runs
↳ tasksarrayTask definitions and task run IDs; nested keys use Databricks API names
↳ task_keystringTask key
↳ run_idnumberTask run ID for Get Run Output
↳ descriptionstringTask description
↳ depends_onarraydepends_on output from the tool
↳ task_keystringUpstream task key
↳ outcomestringRequired outcome of a condition task
↳ existing_cluster_idstringExisting compute cluster
↳ job_cluster_keystringShared job cluster key
↳ notebook_taskobjectnotebook_task output from the tool
↳ notebook_pathstringNotebook path
↳ sourcestringWORKSPACE or GIT
↳ base_parametersobjectNotebook parameter map
↳ spark_python_taskobjectspark_python_task output from the tool
↳ python_filestringPython file path or cloud URI
↳ sourcestringWORKSPACE or GIT
↳ parametersarrayparameters output from the tool
↳ spark_jar_taskobjectspark_jar_task output from the tool
↳ main_class_namestringJAR entry point class
↳ parametersarrayparameters output from the tool
↳ jar_uristringLegacy JAR URI
↳ spark_submit_taskobjectLegacy spark-submit task
↳ parametersarrayparameters output from the tool
↳ python_wheel_taskobjectpython_wheel_task output from the tool
↳ package_namestringPython package name
↳ entry_pointstringPackage entry point
↳ parametersarrayparameters output from the tool
↳ named_parametersobjectNamed wheel parameters
↳ sql_taskobjectsql_task output from the tool
↳ warehouse_idstringSQL warehouse identifier
↳ parametersobjectSQL parameters
↳ queryobjectquery output from the tool
↳ query_idstringSaved query identifier
↳ fileobjectfile output from the tool
↳ pathstringSQL file path
↳ sourcestringWORKSPACE or GIT
↳ alertobjectalert output from the tool
↳ alert_idstringSQL alert identifier
↳ subscriptionsarraysubscriptions output from the tool
↳ pause_subscriptionsbooleanpause_subscriptions output from the tool
↳ dashboardobjectdashboard output from the tool
↳ dashboard_idstringLegacy SQL dashboard identifier
↳ subscriptionsarraysubscriptions output from the tool
↳ custom_subjectstringcustom_subject output from the tool
↳ pause_subscriptionsbooleanpause_subscriptions output from the tool
↳ run_job_taskobjectrun_job_task output from the tool
↳ job_idnumberNested job identifier
↳ job_parametersobjectNested job parameters
↳ pipeline_paramsobjectPipeline refresh settings
↳ pipeline_taskobjectpipeline_task output from the tool
↳ pipeline_idstringPipeline identifier
↳ parametersobjectparameters output from the tool
↳ full_refreshbooleanfull_refresh output from the tool
↳ refresh_selectionarrayrefresh_selection output from the tool
↳ full_refresh_selectionarrayfull_refresh_selection output from the tool
↳ reset_checkpoint_selectionarrayreset_checkpoint_selection output from the tool
↳ refresh_flow_selectionarrayrefresh_flow_selection output from the tool
↳ dbt_taskobjectdbt_task output from the tool
↳ commandsarraydbt commands
↳ project_directorystringproject_directory output from the tool
↳ profiles_directorystringprofiles_directory output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ catalogstringcatalog output from the tool
↳ schemastringschema output from the tool
↳ sourcestringWORKSPACE or GIT
↳ condition_taskobjectcondition_task output from the tool
↳ opstringComparison operator
↳ leftstringLeft operand
↳ rightstringRight operand
↳ outcomestringEvaluation result: true or false
↳ for_each_taskobjectfor_each_task output from the tool
↳ inputsstringJSON array or parameter reference to iterate over
↳ concurrencynumberconcurrency output from the tool
↳ taskobjectNested task definition
↳ clean_rooms_notebook_taskobjectclean_rooms_notebook_task output from the tool
↳ clean_room_namestringclean_room_name output from the tool
↳ notebook_namestringnotebook_name output from the tool
↳ etagstringetag output from the tool
↳ notebook_base_parametersobjectnotebook_base_parameters output from the tool
↳ dashboard_taskobjectdashboard_task output from the tool
↳ dashboard_idstringdashboard_id output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ subscriptionobjectsubscription output from the tool
↳ filtersobjectfilters output from the tool
↳ alert_taskobjectalert_task output from the tool
↳ alert_idstringalert_id output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ workspace_pathstringworkspace_path output from the tool
↳ subscribersarraysubscribers output from the tool
↳ power_bi_taskobjectpower_bi_task output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ connection_resource_namestringconnection_resource_name output from the tool
↳ refresh_after_updatebooleanrefresh_after_update output from the tool
↳ power_bi_modelobjectpower_bi_model output from the tool
↳ tablesarraytables output from the tool
↳ stateobjectstate output from the tool
↳ life_cycle_statestringlife_cycle_state output from the tool
↳ result_statestringresult_state output from the tool
↳ state_messagestringstate_message output from the tool
↳ resolved_valuesobjectResolved task parameters keyed by task type (notebook_task, spark_python_task, sql_task, and other task variants)
↳ start_timenumberTask start in epoch milliseconds
↳ end_timenumberTask end in epoch milliseconds
↳ run_page_urlstringTask run URL
↳ jobClustersarrayShared job compute definitions
↳ job_cluster_keystringCluster reference key
↳ new_clusterobjectCloud-dependent compute configuration
↳ spark_versionstringspark_version output from the tool
↳ node_type_idstringnode_type_id output from the tool
↳ num_workersnumbernum_workers output from the tool
↳ autoscaleobjectautoscale output from the tool
↳ min_workersnumbermin_workers output from the tool
↳ max_workersnumbermax_workers output from the tool
↳ runStatusobjectRun lifecycle and termination or queue details
↳ statestringCurrent lifecycle state
↳ termination_detailsobjecttermination_details output from the tool
↳ codestringcode output from the tool
↳ typestringtype output from the tool
↳ messagestringmessage output from the tool
↳ queue_detailsobjectqueue_details output from the tool
↳ codestringcode output from the tool
↳ messagestringmessage output from the tool
↳ hasMorebooleanWhether tasks or job clusters have additional pages
↳ runPageUrlstringRun details URL
↳ runIdnumberUnique run identifier
↳ jobIdnumberJob this run belongs to
↳ runNamestringRun name
↳ runTypestringRun type (JOB_RUN, WORKFLOW_RUN, SUBMIT_RUN)
↳ stateobjectRun state information
↳ lifeCycleStatestringLifecycle state (QUEUED, PENDING, RUNNING, TERMINATING, TERMINATED, SKIPPED, INTERNAL_ERROR, BLOCKED, WAITING_FOR_RETRY)
↳ resultStatestringResult state (SUCCESS, FAILED, TIMEDOUT, CANCELED, SUCCESS_WITH_FAILURES, UPSTREAM_FAILED, UPSTREAM_CANCELED, EXCLUDED)
↳ stateMessagestringDescriptive state message
↳ userCancelledOrTimedoutbooleanWhether the run was cancelled by user or timed out
↳ startTimenumberRun start timestamp (epoch ms)
↳ endTimenumberRun end timestamp (epoch ms)
hasMorebooleanWhether more runs are available for pagination
nextPageTokenstringToken for fetching the next page of results

Databricks Get Run

Get the status, timing, and details of a Databricks job run by its run ID.

Input

ParameterTypeRequiredDescription
pageTokenstringNoToken for the next page of tasks and job clusters
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesThe canonical identifier of the run
includeHistorybooleanNoInclude repair history in the response
includeResolvedValuesbooleanNoInclude resolved parameter values in the response

Output

ParameterTypeDescription
tasksarrayTask definitions and task run IDs; nested keys use Databricks API names
↳ task_keystringTask key
↳ run_idnumberTask run ID for Get Run Output
↳ descriptionstringTask description
↳ depends_onarraydepends_on output from the tool
↳ task_keystringUpstream task key
↳ outcomestringRequired outcome of a condition task
↳ existing_cluster_idstringExisting compute cluster
↳ job_cluster_keystringShared job cluster key
↳ notebook_taskobjectnotebook_task output from the tool
↳ notebook_pathstringNotebook path
↳ sourcestringWORKSPACE or GIT
↳ base_parametersobjectNotebook parameter map
↳ spark_python_taskobjectspark_python_task output from the tool
↳ python_filestringPython file path or cloud URI
↳ sourcestringWORKSPACE or GIT
↳ parametersarrayparameters output from the tool
↳ spark_jar_taskobjectspark_jar_task output from the tool
↳ main_class_namestringJAR entry point class
↳ parametersarrayparameters output from the tool
↳ jar_uristringLegacy JAR URI
↳ spark_submit_taskobjectLegacy spark-submit task
↳ parametersarrayparameters output from the tool
↳ python_wheel_taskobjectpython_wheel_task output from the tool
↳ package_namestringPython package name
↳ entry_pointstringPackage entry point
↳ parametersarrayparameters output from the tool
↳ named_parametersobjectNamed wheel parameters
↳ sql_taskobjectsql_task output from the tool
↳ warehouse_idstringSQL warehouse identifier
↳ parametersobjectSQL parameters
↳ queryobjectquery output from the tool
↳ query_idstringSaved query identifier
↳ fileobjectfile output from the tool
↳ pathstringSQL file path
↳ sourcestringWORKSPACE or GIT
↳ alertobjectalert output from the tool
↳ alert_idstringSQL alert identifier
↳ subscriptionsarraysubscriptions output from the tool
↳ pause_subscriptionsbooleanpause_subscriptions output from the tool
↳ dashboardobjectdashboard output from the tool
↳ dashboard_idstringLegacy SQL dashboard identifier
↳ subscriptionsarraysubscriptions output from the tool
↳ custom_subjectstringcustom_subject output from the tool
↳ pause_subscriptionsbooleanpause_subscriptions output from the tool
↳ run_job_taskobjectrun_job_task output from the tool
↳ job_idnumberNested job identifier
↳ job_parametersobjectNested job parameters
↳ pipeline_paramsobjectPipeline refresh settings
↳ pipeline_taskobjectpipeline_task output from the tool
↳ pipeline_idstringPipeline identifier
↳ parametersobjectparameters output from the tool
↳ full_refreshbooleanfull_refresh output from the tool
↳ refresh_selectionarrayrefresh_selection output from the tool
↳ full_refresh_selectionarrayfull_refresh_selection output from the tool
↳ reset_checkpoint_selectionarrayreset_checkpoint_selection output from the tool
↳ refresh_flow_selectionarrayrefresh_flow_selection output from the tool
↳ dbt_taskobjectdbt_task output from the tool
↳ commandsarraydbt commands
↳ project_directorystringproject_directory output from the tool
↳ profiles_directorystringprofiles_directory output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ catalogstringcatalog output from the tool
↳ schemastringschema output from the tool
↳ sourcestringWORKSPACE or GIT
↳ condition_taskobjectcondition_task output from the tool
↳ opstringComparison operator
↳ leftstringLeft operand
↳ rightstringRight operand
↳ outcomestringEvaluation result: true or false
↳ for_each_taskobjectfor_each_task output from the tool
↳ inputsstringJSON array or parameter reference to iterate over
↳ concurrencynumberconcurrency output from the tool
↳ taskobjectNested task definition
↳ clean_rooms_notebook_taskobjectclean_rooms_notebook_task output from the tool
↳ clean_room_namestringclean_room_name output from the tool
↳ notebook_namestringnotebook_name output from the tool
↳ etagstringetag output from the tool
↳ notebook_base_parametersobjectnotebook_base_parameters output from the tool
↳ dashboard_taskobjectdashboard_task output from the tool
↳ dashboard_idstringdashboard_id output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ subscriptionobjectsubscription output from the tool
↳ filtersobjectfilters output from the tool
↳ alert_taskobjectalert_task output from the tool
↳ alert_idstringalert_id output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ workspace_pathstringworkspace_path output from the tool
↳ subscribersarraysubscribers output from the tool
↳ power_bi_taskobjectpower_bi_task output from the tool
↳ warehouse_idstringwarehouse_id output from the tool
↳ connection_resource_namestringconnection_resource_name output from the tool
↳ refresh_after_updatebooleanrefresh_after_update output from the tool
↳ power_bi_modelobjectpower_bi_model output from the tool
↳ tablesarraytables output from the tool
↳ stateobjectstate output from the tool
↳ life_cycle_statestringlife_cycle_state output from the tool
↳ result_statestringresult_state output from the tool
↳ state_messagestringstate_message output from the tool
↳ resolved_valuesobjectResolved task parameters keyed by task type (notebook_task, spark_python_task, sql_task, and other task variants)
↳ start_timenumberTask start in epoch milliseconds
↳ end_timenumberTask end in epoch milliseconds
↳ run_page_urlstringTask run URL
jobClustersarrayShared job compute definitions
↳ job_cluster_keystringCluster reference key
↳ new_clusterobjectCloud-dependent compute configuration
↳ spark_versionstringspark_version output from the tool
↳ node_type_idstringnode_type_id output from the tool
↳ num_workersnumbernum_workers output from the tool
↳ autoscaleobjectautoscale output from the tool
↳ min_workersnumbermin_workers output from the tool
↳ max_workersnumbermax_workers output from the tool
runStatusobjectRun lifecycle and termination or queue details
↳ statestringCurrent lifecycle state
↳ termination_detailsobjecttermination_details output from the tool
↳ codestringcode output from the tool
↳ typestringtype output from the tool
↳ messagestringmessage output from the tool
↳ queue_detailsobjectqueue_details output from the tool
↳ codestringcode output from the tool
↳ messagestringmessage output from the tool
repairHistoryarrayPrior repairs; pass the latest id to Repair Run
↳ idnumberid output from the tool
↳ task_run_idsarraytask_run_ids output from the tool
↳ statusobjectRun lifecycle and termination or queue details
↳ statestringCurrent lifecycle state
↳ termination_detailsobjecttermination_details output from the tool
↳ codestringcode output from the tool
↳ typestringtype output from the tool
↳ messagestringmessage output from the tool
↳ queue_detailsobjectqueue_details output from the tool
↳ codestringcode output from the tool
↳ messagestringmessage output from the tool
jobParametersarrayResolved job parameter values
runDurationnumberRun duration including repairs in milliseconds
nextPageTokenstringToken for the next page of tasks or job clusters
runIdnumberThe run ID
jobIdnumberThe job ID this run belongs to
runNamestringName of the run
runTypestringType of run (JOB_RUN, WORKFLOW_RUN, SUBMIT_RUN)
attemptNumbernumberRetry attempt number (0 for initial attempt)
stateobjectRun state information
↳ lifeCycleStatestringLifecycle state (QUEUED, PENDING, RUNNING, TERMINATING, TERMINATED, SKIPPED, INTERNAL_ERROR, BLOCKED, WAITING_FOR_RETRY)
↳ resultStatestringResult state (SUCCESS, FAILED, TIMEDOUT, CANCELED, SUCCESS_WITH_FAILURES, UPSTREAM_FAILED, UPSTREAM_CANCELED, EXCLUDED)
↳ stateMessagestringDescriptive message for the current state
↳ userCancelledOrTimedoutbooleanWhether the run was cancelled by user or timed out
startTimenumberRun start timestamp (epoch ms)
endTimenumberRun end timestamp (epoch ms, 0 if still running)
setupDurationnumberCluster setup duration (ms)
executionDurationnumberExecution duration (ms)
cleanupDurationnumberCleanup duration (ms)
queueDurationnumberTime spent in queue before execution (ms)
runPageUrlstringURL to the run detail page in Databricks UI
creatorUserNamestringEmail of the user who triggered the run

Databricks Get Run Output

Get the output of a completed Databricks job run, including notebook results, error messages, and logs. For multi-task jobs, use the task run ID (not the parent run ID).

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesThe run ID to get output for. For multi-task jobs, use the task run ID

Output

ParameterTypeDescription
infostringAdditional output information
runJobOutputobjectRun Job task result
↳ run_idnumberChild run identifier
dbtOutputobjectdbt artifact download information
↳ artifacts_linkstringTemporary artifact URL
↳ artifacts_headersobjectHeaders required to fetch the artifact
sqlOutputobjectSQL query, alert, or dashboard task results
↳ query_outputobjectquery_output output from the tool
↳ alert_outputobjectalert_output output from the tool
↳ dashboard_outputobjectdashboard_output output from the tool
↳ widgetsarraywidgets output from the tool
notebookOutputobjectNotebook task output (from dbutils.notebook.exit())
↳ resultstringValue passed to dbutils.notebook.exit() (max 5 MB)
↳ truncatedbooleanWhether the result was truncated
errorstringError message if the run failed or output is unavailable
errorTracestringError stack trace if available
logsstringLog output (last 5 MB) from spark_jar, spark_python, or python_wheel tasks
logsTruncatedbooleanWhether the log output was truncated

Databricks Repair Run

Rerun failed or selected tasks within an existing Databricks run.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesRun identifier
latestRepairIdnumberNoMost recent repair ID; required after the first repair of a run
rerunTasksjsonNoTask keys to repair; mutually exclusive with rerunAllFailedTasks
jobParametersjsonNoJob-level parameter overrides as a JSON object of string keys and values
rerunAllFailedTasksbooleanNoRepair every failed task instead of specifying task keys
rerunDependentTasksbooleanNoAlso rerun tasks downstream of the selected failed tasks
performanceTargetstringNoServerless performance mode: STANDARD or PERFORMANCE_OPTIMIZED
pipelineParamsjsonNoPipeline refresh settings, including full_refresh and selective table or flow lists

Output

ParameterTypeDescription
repairIdnumberIdentifier of the repair; pass it as latestRepairId on the next repair

Databricks Cancel Run

Cancel a running or pending Databricks job run. Cancellation is asynchronous; poll the run status to confirm termination.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesThe canonical identifier of the run to cancel

Output

ParameterTypeDescription
successbooleanWhether the cancel request was accepted

Databricks Cancel All Runs

Request cancellation of active runs of a job or queued runs in the workspace.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberNoJob identifier; required unless allQueuedRuns is true
allQueuedRunsbooleanNoCancel queued runs; without a job ID this applies to the workspace

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Delete Run

Delete a completed Databricks job run.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesRun identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks List Clusters

List a page of clusters in a Databricks workspace including their state, configuration, and resource details.

Input

ParameterTypeRequiredDescription
pageSizenumberNoResources per page (default 20)
pageTokenstringNoToken returned by the previous list request
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token

Output

ParameterTypeDescription
nextPageTokenstringToken for the next page
prevPageTokenstringToken for the previous page
clustersarrayList of clusters in the workspace
↳ policyIdstringCompute policy identifier
↳ dataSecurityModestringCluster access mode
↳ terminatedTimenumberCluster termination time in epoch milliseconds
↳ customTagsobjectCustom cluster tags
↳ terminationReasonobjectReason for termination (code, type, parameters)
↳ parametersobjectProvider-specific termination parameters
↳ clusterIdstringUnique cluster identifier
↳ clusterNamestringCluster display name
↳ statestringCurrent state (PENDING, RUNNING, RESTARTING, RESIZING, TERMINATING, TERMINATED, ERROR, UNKNOWN)
↳ stateMessagestringHuman-readable state description
↳ creatorUserNamestringEmail of the cluster creator
↳ sparkVersionstringSpark runtime version (e.g., 13.3.x-scala2.12)
↳ nodeTypeIdstringWorker node type identifier
↳ driverNodeTypeIdstringDriver node type identifier
↳ numWorkersnumberNumber of worker nodes (for fixed-size clusters)
↳ autoscaleobjectAutoscaling configuration (null for fixed-size clusters)
↳ minWorkersnumberMinimum number of workers
↳ maxWorkersnumberMaximum number of workers
↳ clusterSourcestringOrigin (API, UI, JOB, MODELS, PIPELINE, PIPELINE_MAINTENANCE, SQL)
↳ autoterminationMinutesnumberMinutes of inactivity before auto-termination (0 = disabled)
↳ startTimenumberCluster start timestamp (epoch ms)

Databricks Get Cluster

Get the state, configuration, and resource details of a single Databricks cluster by its cluster ID.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesThe ID of the cluster to retrieve

Output

ParameterTypeDescription
clusterobjectCluster detail
↳ policyIdstringCompute policy identifier
↳ dataSecurityModestringCluster access mode
↳ terminatedTimenumberCluster termination time in epoch milliseconds
↳ customTagsobjectCustom cluster tags
↳ terminationReasonobjectReason for termination (code, type, parameters)
↳ parametersobjectProvider-specific termination parameters
↳ clusterIdstringUnique cluster identifier
↳ clusterNamestringCluster display name
↳ statestringCurrent state (PENDING, RUNNING, RESTARTING, RESIZING, TERMINATING, TERMINATED, ERROR, UNKNOWN)
↳ stateMessagestringHuman-readable state description
↳ creatorUserNamestringEmail of the cluster creator
↳ sparkVersionstringSpark runtime version (e.g., 13.3.x-scala2.12)
↳ nodeTypeIdstringWorker node type identifier
↳ driverNodeTypeIdstringDriver node type identifier
↳ numWorkersnumberNumber of worker nodes (for fixed-size clusters)
↳ autoscaleobjectAutoscaling configuration (null for fixed-size clusters)
↳ minWorkersnumberMinimum number of workers
↳ maxWorkersnumberMaximum number of workers
↳ clusterSourcestringOrigin (API, UI, JOB, MODELS, PIPELINE, PIPELINE_MAINTENANCE, SQL)
↳ autoterminationMinutesnumberMinutes of inactivity before auto-termination (0 = disabled)
↳ startTimenumberCluster start timestamp (epoch ms)

Databricks Create Cluster

Create a compute cluster with runtime, sizing, policy, and cloud-specific settings.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
applyPolicyDefaultValuesbooleanNoFill unspecified settings from the compute policy defaults
cloneFromjsonNoClone source as {source_cluster_id, clone_source}
numWorkersnumberNoFixed worker count; use this or autoscale
autoscalejsonNoWorker range as {min_workers, max_workers}; use this or numWorkers
clusterNamestringNoDisplay name of the compute cluster
sparkVersionstringNoDatabricks runtime version, or omit when supplied by a compute policy
sparkConfjsonNoSpark configuration as a JSON map
awsAttributesjsonNoAWS compute configuration such as availability, zone_id, and instance_profile_arn
azureAttributesjsonNoAzure compute configuration such as availability and spot_bid_max_price
gcpAttributesjsonNoGCP compute configuration such as availability and zone_id
nodeTypeIdstringNoWorker node type identifier
driverNodeTypeIdstringNoDriver node type identifier
workerNodeTypeFlexibilityjsonNoAlternative worker node type selection settings
driverNodeTypeFlexibilityjsonNoAlternative driver node type selection settings
sshPublicKeysjsonNoSSH public keys to install on the cluster
customTagsjsonNoCustom cluster tags as a JSON map
clusterLogConfjsonNoCluster log destination in Databricks API format
sparkEnvVarsjsonNoEnvironment variables for the Spark processes as a JSON map
autoterminationMinutesnumberNoIdle minutes before termination; 0 disables automatic termination
enableElasticDiskbooleanNoAllow automatic expansion of attached storage
initScriptsjsonNoCluster initialization script locations in Databricks API format
dockerImagejsonNoCustom container image URL and optional basic_auth settings
instancePoolIdstringNoWorker instance pool identifier
singleUserNamestringNoAssigned user or service principal for dedicated access mode
policyIdstringNoCompute policy identifier
enableLocalDiskEncryptionbooleanNoEncrypt local cluster storage
driverInstancePoolIdstringNoDriver instance pool identifier
workloadTypejsonNoPermitted workload types in Databricks API format
dataSecurityModestringNoCluster access mode
runtimeEnginestringNoRuntime execution engine
kindstringNoCompute kind
useMlRuntimebooleanNoUse a machine learning runtime
isSingleNodebooleanNoCreate a single-node compute resource
remoteDiskThroughputnumberNoRemote disk throughput setting
totalInitialRemoteDiskSizenumberNoInitial remote disk size setting
dependencyModestringNoCluster dependency mode

Output

ParameterTypeDescription
clusterIdstringCompute cluster identifier

Databricks Edit Cluster

Replace a compute cluster configuration; a running cluster restarts to apply the changes.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier
applyPolicyDefaultValuesbooleanNoFill unspecified settings from the compute policy defaults
numWorkersnumberNoFixed worker count; use this or autoscale
autoscalejsonNoWorker range as {min_workers, max_workers}; use this or numWorkers
clusterNamestringNoDisplay name of the compute cluster
sparkVersionstringNoDatabricks runtime version, or omit when supplied by a compute policy
sparkConfjsonNoSpark configuration as a JSON map
awsAttributesjsonNoAWS compute configuration such as availability, zone_id, and instance_profile_arn
azureAttributesjsonNoAzure compute configuration such as availability and spot_bid_max_price
gcpAttributesjsonNoGCP compute configuration such as availability and zone_id
nodeTypeIdstringNoWorker node type identifier
driverNodeTypeIdstringNoDriver node type identifier
workerNodeTypeFlexibilityjsonNoAlternative worker node type selection settings
driverNodeTypeFlexibilityjsonNoAlternative driver node type selection settings
sshPublicKeysjsonNoSSH public keys to install on the cluster
customTagsjsonNoCustom cluster tags as a JSON map
clusterLogConfjsonNoCluster log destination in Databricks API format
sparkEnvVarsjsonNoEnvironment variables for the Spark processes as a JSON map
autoterminationMinutesnumberNoIdle minutes before termination; 0 disables automatic termination
enableElasticDiskbooleanNoAllow automatic expansion of attached storage
initScriptsjsonNoCluster initialization script locations in Databricks API format
dockerImagejsonNoCustom container image URL and optional basic_auth settings
instancePoolIdstringNoWorker instance pool identifier
singleUserNamestringNoAssigned user or service principal for dedicated access mode
policyIdstringNoCompute policy identifier
enableLocalDiskEncryptionbooleanNoEncrypt local cluster storage
driverInstancePoolIdstringNoDriver instance pool identifier
workloadTypejsonNoPermitted workload types in Databricks API format
dataSecurityModestringNoCluster access mode
runtimeEnginestringNoRuntime execution engine
kindstringNoCompute kind
useMlRuntimebooleanNoUse a machine learning runtime
isSingleNodebooleanNoCreate a single-node compute resource
remoteDiskThroughputnumberNoRemote disk throughput setting
totalInitialRemoteDiskSizenumberNoInitial remote disk size setting
dependencyModestringNoCluster dependency mode

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Start Cluster

Start a terminated all-purpose compute cluster.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Restart Cluster

Restart a running compute cluster.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier
restartUserstringNoUser requesting the cluster restart

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Resize Cluster

Change the fixed worker count or autoscaling range of a running cluster.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier
numWorkersnumberNoFixed worker count; use this or autoscale
autoscalejsonNoWorker range as {min_workers, max_workers}; use this or numWorkers

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Terminate Cluster

Terminate a compute cluster while retaining its configuration for a later restart.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Delete Cluster

Permanently delete a compute cluster and its configuration.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks List Warehouses

List a page of SQL warehouses in a Databricks workspace including their size, state, and type. Use this to discover the warehouse ID needed for Execute SQL.

Input

ParameterTypeRequiredDescription
pageSizenumberNoResources per page (default 20)
pageTokenstringNoToken returned by the previous list request
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token

Output

ParameterTypeDescription
nextPageTokenstringToken for the next page
warehousesarrayList of SQL warehouses in the workspace
↳ jdbcUrlstringJDBC connection string
↳ odbcParamsobjectODBC connection settings
↳ hostnamestringhostname output from the tool
↳ pathstringpath output from the tool
↳ protocolstringprotocol output from the tool
↳ portnumberport output from the tool
↳ healthobjectWarehouse health and failure reason
↳ statusstringstatus output from the tool
↳ failure_reasonobjectfailure_reason output from the tool
↳ codestringcode output from the tool
↳ typestringtype output from the tool
↳ parametersobjectparameters output from the tool
↳ tagsobjectWarehouse tags
↳ custom_tagsarraycustom_tags output from the tool
↳ keystringkey output from the tool
↳ valuestringvalue output from the tool
↳ enablePhotonbooleanWhether Photon is enabled
↳ spotInstancePolicystringSpot instance policy
↳ channelobjectWarehouse release channel
↳ namestringname output from the tool
↳ statementTimeoutnumberStatement timeout in seconds
↳ warehouseIdstringUnique warehouse identifier
↳ namestringWarehouse display name
↳ clusterSizestringWarehouse size (e.g., 2X-Small, Small, Medium, Large)
↳ statestringCurrent state (STARTING, RUNNING, STOPPING, STOPPED, DELETING, DELETED)
↳ warehouseTypestringWarehouse type (CLASSIC, PRO)
↳ creatorNamestringEmail of the warehouse creator
↳ autoStopMinutesnumberMinutes of inactivity before auto-stop (0 = disabled)
↳ numClustersnumberCurrent number of running clusters
↳ minNumClustersnumberMinimum cluster count for scaling
↳ maxNumClustersnumberMaximum cluster count for scaling
↳ numActiveSessionsnumberNumber of active sessions
↳ enableServerlessComputebooleanWhether serverless compute is enabled

Databricks Get Warehouse

Get the configuration, state, and scaling settings of a SQL warehouse.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier

Output

ParameterTypeDescription
warehouseobjectSQL warehouse configuration and state
↳ jdbcUrlstringJDBC connection string
↳ odbcParamsobjectODBC connection settings
↳ hostnamestringhostname output from the tool
↳ pathstringpath output from the tool
↳ protocolstringprotocol output from the tool
↳ portnumberport output from the tool
↳ healthobjectWarehouse health and failure reason
↳ statusstringstatus output from the tool
↳ failure_reasonobjectfailure_reason output from the tool
↳ codestringcode output from the tool
↳ typestringtype output from the tool
↳ parametersobjectparameters output from the tool
↳ tagsobjectWarehouse tags
↳ custom_tagsarraycustom_tags output from the tool
↳ keystringkey output from the tool
↳ valuestringvalue output from the tool
↳ enablePhotonbooleanWhether Photon is enabled
↳ spotInstancePolicystringSpot instance policy
↳ channelobjectWarehouse release channel
↳ namestringname output from the tool
↳ statementTimeoutnumberStatement timeout in seconds
↳ warehouseIdstringUnique warehouse identifier
↳ namestringWarehouse display name
↳ clusterSizestringWarehouse size (e.g., 2X-Small, Small, Medium, Large)
↳ statestringCurrent state (STARTING, RUNNING, STOPPING, STOPPED, DELETING, DELETED)
↳ warehouseTypestringWarehouse type (CLASSIC, PRO)
↳ creatorNamestringEmail of the warehouse creator
↳ autoStopMinutesnumberMinutes of inactivity before auto-stop (0 = disabled)
↳ numClustersnumberCurrent number of running clusters
↳ minNumClustersnumberMinimum cluster count for scaling
↳ maxNumClustersnumberMaximum cluster count for scaling
↳ numActiveSessionsnumberNumber of active sessions
↳ enableServerlessComputebooleanWhether serverless compute is enabled

Databricks Create Warehouse

Create a SQL warehouse with sizing, autoscaling, and serverless settings.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
namestringNoDisplay name of the SQL warehouse
clusterSizestringNoSQL warehouse size, such as Small or Medium
minNumClustersnumberNoMinimum number of SQL warehouse clusters
maxNumClustersnumberNoMaximum number of SQL warehouse clusters
autoStopMinsnumberNoIdle minutes before stopping the warehouse; 0 disables automatic stopping
creatorNamestringNoWarehouse creator name
warehouseTagsjsonNoWarehouse tags as {custom_tags: [{key, value}]}
spotInstancePolicystringNoCost or reliability preference for spot instances
enablePhotonbooleanNoEnable Photon for SQL warehouse compute
channeljsonNoWarehouse release channel as {name: "CHANNEL_NAME_CURRENT"}
enableServerlessComputebooleanNoUse serverless SQL warehouse compute
warehouseTypestringNoWarehouse type; use PRO for serverless
statementTimeoutnumberNoWarehouse statement timeout in seconds

Output

ParameterTypeDescription
warehouseIdstringSQL warehouse identifier

Databricks Edit Warehouse

Update a SQL warehouse configuration.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier
namestringNoDisplay name of the SQL warehouse
clusterSizestringNoSQL warehouse size, such as Small or Medium
minNumClustersnumberNoMinimum number of SQL warehouse clusters
maxNumClustersnumberNoMaximum number of SQL warehouse clusters
autoStopMinsnumberNoIdle minutes before stopping the warehouse; 0 disables automatic stopping
creatorNamestringNoWarehouse creator name
warehouseTagsjsonNoWarehouse tags as {custom_tags: [{key, value}]}
spotInstancePolicystringNoCost or reliability preference for spot instances
enablePhotonbooleanNoEnable Photon for SQL warehouse compute
channeljsonNoWarehouse release channel as {name: "CHANNEL_NAME_CURRENT"}
enableServerlessComputebooleanNoUse serverless SQL warehouse compute
warehouseTypestringNoWarehouse type; use PRO for serverless
statementTimeoutnumberNoWarehouse statement timeout in seconds

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Start Warehouse

Start a stopped SQL warehouse.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Stop Warehouse

Stop a running SQL warehouse.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Delete Warehouse

Delete a SQL warehouse.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Genie List Spaces

List the Genie spaces (Genie agents) you can access. Use this to find the space ID needed to ask Genie a question.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
pageSizenumberNoMaximum number of spaces to return per page (default 20, max 100)
pageTokenstringNoPagination token from a previous response

Output

ParameterTypeDescription
spacesarrayGenie spaces
↳ etagstringSpace version for conditional updates
↳ spaceIdstringGenie space ID
↳ titlestringSpace title
↳ descriptionstringSpace description
↳ warehouseIdstringSQL warehouse the space runs queries on
↳ parentPathstringWorkspace folder containing the space
↳ createTimestringWhen the space was created (ISO 8601)
↳ updateTimestringWhen the space was last modified (ISO 8601)
nextPageTokenstringToken for the next page of results

Databricks Genie Get Space

Get a Genie space's title, description, and SQL warehouse, optionally with its full configuration export (tables, instructions, sample questions).

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
includeSerializedSpacebooleanNoInclude the space's serialized configuration export (requires CAN EDIT on the space)

Output

ParameterTypeDescription
etagstringSpace version for conditional updates
spaceIdstringGenie space ID
titlestringSpace title
descriptionstringSpace description
warehouseIdstringSQL warehouse the space runs queries on
parentPathstringWorkspace folder containing the space
createTimestringWhen the space was created (ISO 8601)
updateTimestringWhen the space was last modified (ISO 8601)
serializedSpacestringSerialized space configuration as a JSON string (data sources, instructions, sample questions)

Databricks Create Genie Space

Create a Genie space from its serialized configuration and a SQL warehouse.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier
parentPathstringNoParent workspace folder for the Genie space
serializedSpacestringYesSerialized Genie configuration JSON, including data_sources, instructions, config, and benchmarks; get an example with Get Genie Space
titlestringNoGenie space title
descriptionstringNoDescription of the Genie space

Output

ParameterTypeDescription
etagstringSpace version for conditional updates
spaceIdstringGenie space ID
titlestringSpace title
descriptionstringSpace description
warehouseIdstringSQL warehouse the space runs queries on
parentPathstringWorkspace folder containing the space
createTimestringWhen the space was created (ISO 8601)
updateTimestringWhen the space was last modified (ISO 8601)
serializedSpacestringSerialized Genie configuration (data_sources, instructions, config, benchmarks)

Databricks Update Genie Space

Update a Genie space, optionally protecting the change with its current ETag.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesGenie space identifier
serializedSpacestringNoSerialized Genie configuration JSON, including data_sources, instructions, config, and benchmarks; get an example with Get Genie Space
titlestringNoGenie space title
descriptionstringNoDescription of the Genie space; an empty string clears the description
warehouseIdstringNoSQL warehouse identifier
etagstringNoVersion from Get Genie Space; prevents overwriting concurrent changes
parentPathstringNoParent workspace folder for the Genie space

Output

ParameterTypeDescription
etagstringSpace version for conditional updates
spaceIdstringGenie space ID
titlestringSpace title
descriptionstringSpace description
warehouseIdstringSQL warehouse the space runs queries on
parentPathstringWorkspace folder containing the space
createTimestringWhen the space was created (ISO 8601)
updateTimestringWhen the space was last modified (ISO 8601)
serializedSpacestringSerialized Genie configuration (data_sources, instructions, config, benchmarks)

Databricks Trash Genie Space

Move a Genie space to the trash.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesGenie space identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Genie Ask

Ask a Databricks Genie space a question in natural language and wait for the answer. Starts a new conversation, or continues an existing one when a conversation ID is given. Returns the text answer, the SQL Genie generated, and the query result rows.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
contentstringYesThe question to ask Genie
conversationIdstringNoContinue this conversation so Genie uses its earlier messages as context. Omit to start a new conversation.
enableVisualizationbooleanNoAsk Genie to also generate a chart when one fits the answer

Output

ParameterTypeDescription
rowCountnumberNumber of rows in this chunk
conversationIdstringGenie conversation ID
messageIdstringGenie message ID
statusstringMessage status (SUBMITTED, FETCHING_METADATA, FILTERING_CONTEXT, ASKING_AI, PENDING_WAREHOUSE, EXECUTING_QUERY, COMPLETED, FAILED, CANCELLED, QUERY_RESULT_EXPIRED)
contentstringThe question that was asked
answerstringGenie's text answer or summary
followUpQuestionstringClarifying question Genie asked instead of, or alongside, an answer
queryTitlestringTitle of the generated query
sqlstringSQL query Genie generated
queryDescriptionstringPlain-language description of the generated SQL
queryAttachmentIdstringAttachment ID of the generated query, used to fetch or re-run its result
statementIdstringSQL statement ID of the generated query
thoughtsarrayHow Genie interpreted the question and built the SQL (Public Preview)
↳ typestringThought category (THOUGHT_TYPE_DESCRIPTION, THOUGHT_TYPE_UNDERSTANDING, THOUGHT_TYPE_DATA_SOURCING, THOUGHT_TYPE_INSTRUCTIONS, THOUGHT_TYPE_STEPS)
↳ contentstringMarkdown-formatted thought
suggestedQuestionsarrayFollow-up questions suggested by Genie
visualizationsarrayCharts Genie generated (only when visualization was requested)
↳ attachmentIdstringVisualization attachment ID, used to download the chart
↳ titlestringChart title
↳ queryAttachmentIdstringQuery attachment the chart was built from
errorstringWhy Genie failed to answer
errorTypestringGenie error type
createdTimestampnumberWhen the message was created
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated

Databricks Genie Get Message

Get a Genie message's status and answer, including the generated SQL, visualizations, and suggested follow-up questions.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message

Output

ParameterTypeDescription
conversationIdstringGenie conversation ID
messageIdstringGenie message ID
statusstringMessage status (SUBMITTED, FETCHING_METADATA, FILTERING_CONTEXT, ASKING_AI, PENDING_WAREHOUSE, EXECUTING_QUERY, COMPLETED, FAILED, CANCELLED, QUERY_RESULT_EXPIRED)
contentstringThe question that was asked
answerstringGenie's text answer or summary
followUpQuestionstringClarifying question Genie asked instead of, or alongside, an answer
queryTitlestringTitle of the generated query
sqlstringSQL query Genie generated
queryDescriptionstringPlain-language description of the generated SQL
queryAttachmentIdstringAttachment ID of the generated query, used to fetch or re-run its result
statementIdstringSQL statement ID of the generated query
rowCountnumberNumber of rows the generated query returned
thoughtsarrayHow Genie interpreted the question and built the SQL (Public Preview)
↳ typestringThought category (THOUGHT_TYPE_DESCRIPTION, THOUGHT_TYPE_UNDERSTANDING, THOUGHT_TYPE_DATA_SOURCING, THOUGHT_TYPE_INSTRUCTIONS, THOUGHT_TYPE_STEPS)
↳ contentstringMarkdown-formatted thought
suggestedQuestionsarrayFollow-up questions suggested by Genie
visualizationsarrayCharts Genie generated (only when visualization was requested)
↳ attachmentIdstringVisualization attachment ID, used to download the chart
↳ titlestringChart title
↳ queryAttachmentIdstringQuery attachment the chart was built from
errorstringWhy Genie failed to answer
errorTypestringGenie error type
createdTimestampnumberWhen the message was created

Databricks Genie List Messages

List the messages in a Genie conversation with their answers and generated SQL, for example to replay a conversation history.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
pageSizenumberNoMaximum number of messages to return per page (default 20, max 100)
pageTokenstringNoPagination token from a previous response

Output

ParameterTypeDescription
messagesarrayMessages in the conversation
↳ conversationIdstringGenie conversation ID
↳ messageIdstringGenie message ID
↳ statusstringMessage status (SUBMITTED, FETCHING_METADATA, FILTERING_CONTEXT, ASKING_AI, PENDING_WAREHOUSE, EXECUTING_QUERY, COMPLETED, FAILED, CANCELLED, QUERY_RESULT_EXPIRED)
↳ contentstringThe question that was asked
↳ answerstringGenie's text answer or summary
↳ followUpQuestionstringClarifying question Genie asked instead of, or alongside, an answer
↳ queryTitlestringTitle of the generated query
↳ sqlstringSQL query Genie generated
↳ queryDescriptionstringPlain-language description of the generated SQL
↳ queryAttachmentIdstringAttachment ID of the generated query, used to fetch or re-run its result
↳ statementIdstringSQL statement ID of the generated query
↳ rowCountnumberNumber of rows the generated query returned
↳ thoughtsarrayHow Genie interpreted the question and built the SQL (Public Preview)
↳ typestringThought category (THOUGHT_TYPE_DESCRIPTION, THOUGHT_TYPE_UNDERSTANDING, THOUGHT_TYPE_DATA_SOURCING, THOUGHT_TYPE_INSTRUCTIONS, THOUGHT_TYPE_STEPS)
↳ contentstringMarkdown-formatted thought
↳ suggestedQuestionsarrayFollow-up questions suggested by Genie
↳ visualizationsarrayCharts Genie generated (only when visualization was requested)
↳ attachmentIdstringVisualization attachment ID, used to download the chart
↳ titlestringChart title
↳ queryAttachmentIdstringQuery attachment the chart was built from
↳ errorstringWhy Genie failed to answer
↳ errorTypestringGenie error type
↳ createdTimestampnumberWhen the message was created
nextPageTokenstringToken for the next page of results

Databricks Genie Get Query Result

Get the rows returned by the SQL query Genie generated for a message. Available once the message is EXECUTING_QUERY or COMPLETED.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message
attachmentIdstringYesThe query attachment ID (queryAttachmentId from Ask Genie or Get Genie Message)

Output

ParameterTypeDescription
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated
statementIdstringSQL statement ID of the query
statusstringStatement status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED)

Databricks Genie Execute Query

Re-run the SQL query Genie generated for a message. Use this when the message's query result has expired (status QUERY_RESULT_EXPIRED). If the returned status is PENDING or RUNNING, fetch the rows afterwards with Get Genie Query Result.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message
attachmentIdstringYesThe query attachment ID (queryAttachmentId from Ask Genie or Get Genie Message)

Output

ParameterTypeDescription
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated
statementIdstringSQL statement ID of the query
statusstringStatement status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED)

Databricks Genie Download Visualization

Download a chart Genie generated as a PNG image, for example to post it to Slack. The message must be COMPLETED and asked with visualization enabled. Not supported on Private Link workspaces.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message
attachmentIdstringYesThe visualization attachment ID (visualizations[].attachmentId)

Output

ParameterTypeDescription
filefileRendered chart image (PNG) stored in execution files

Databricks Genie Send Feedback

Rate a Genie answer as positive or negative, with an optional comment. Space authors use this feedback to improve the space's instructions.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message
ratingstringYesFeedback rating: POSITIVE, NEGATIVE, or NONE (clears a previous rating)
commentstringNoOptional feedback comment (max 5000 characters)

Output

ParameterTypeDescription
successbooleanWhether the feedback was recorded

Databricks Genie Delete Message

Delete a message from a Genie conversation.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message

Output

ParameterTypeDescription
successbooleanWhether the message was deleted

Databricks Genie List Conversations

List conversations in a Genie space, including whether each is a chat-mode or agent-mode conversation. By default only your own conversations are returned.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
includeAllbooleanNoInclude every user's conversations in the space (requires CAN MANAGE on the space)
pageSizenumberNoMaximum number of conversations to return per page (default 20, max 100)
pageTokenstringNoPagination token from a previous response

Output

ParameterTypeDescription
conversationsarrayConversations in the Genie space
↳ conversationIdstringConversation ID
↳ titlestringConversation title
↳ createdTimestampnumberWhen the conversation was created
↳ agentTypestringConversation mode (GENIE_CONVERSATION_TYPE_CHAT or GENIE_CONVERSATION_TYPE_AGENT)
nextPageTokenstringToken for the next page of results

Databricks Genie Delete Conversation

Delete a Genie conversation you no longer need.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation to delete

Output

ParameterTypeDescription
successbooleanWhether the conversation was deleted

Databricks Genie Agent Ask

Ask a Genie agent a question in agent mode, where Genie plans multi-step research, runs several SQL queries, and writes a report with citations. Waits for the final report. Starts a new agent-mode conversation, or continues one when a conversation ID is given. Agent mode is in preview and must be enabled on the workspace.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space (the Genie agent ID)
contentstringYesThe question to ask the Genie agent
conversationIdstringNoContinue this agent-mode conversation. Omit to start a new conversation.
enableVisualizationbooleanNoAsk the agent to also generate charts where they fit

Output

ParameterTypeDescription
responseIdstringAgent response ID
conversationIdstringAgent-mode conversation ID; pass it back to ask a follow-up
statusstringResponse status (completed)
reportstringThe agent's final report, with citation links
queriesarraySQL queries the agent ran
↳ callIdstringFunction call ID
↳ titlestringQuery title
↳ sqlstringSQL the agent ran
itemsarrayEvery output item: reasoning, SQL calls, query results, and messages
↳ typestringItem type (message, reasoning, function_call, function_call_output)
↳ idstringItem ID
↳ statusstringItem status
↳ rolestringMessage role (user, assistant, or system) for message items
↳ textstringText of a message or reasoning item
↳ callIdstringPairs a function_call with its function_call_output
↳ namestringFunction name (execute_sql)
↳ argumentsstringFunction call arguments as a JSON string (title and sql)
↳ outputstringQuery result: the query title followed by a Markdown table
createdAtnumberWhen the response was created (Unix epoch seconds)
errorstringSystem error message the agent reported alongside its report

Databricks Genie Agent List Items

List an agent-mode conversation's full history in order: questions, reasoning, SQL calls, query results, and reports. Agent mode is in preview and must be enabled on the workspace.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space (the Genie agent ID)
conversationIdstringYesThe ID of the agent-mode conversation
limitnumberNoMaximum number of items to return (1-100, default 100)
afterstringNoPagination cursor: the lastId from a previous response
orderstringNoSort order: asc (oldest first, default) or desc (newest first)

Output

ParameterTypeDescription
itemsarrayConversation items in order; user questions are message items whose ID ends in _input
↳ typestringItem type (message, reasoning, function_call, function_call_output)
↳ idstringItem ID
↳ statusstringItem status
↳ rolestringMessage role (user, assistant, or system) for message items
↳ textstringText of a message or reasoning item
↳ callIdstringPairs a function_call with its function_call_output
↳ namestringFunction name (execute_sql)
↳ argumentsstringFunction call arguments as a JSON string (title and sql)
↳ outputstringQuery result: the query title followed by a Markdown table
firstIdstringID of the first item in the page
lastIdstringID of the last item in the page; pass it as After for the next page
hasMorebooleanWhether more items follow this page
statusstringStatus of the latest response in the conversation

Databricks Genie Agent Cancel

Cancel an in-flight Genie agent response using the response ID returned by the agent stream.

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesAgent conversation identifier
responseIdstringYesResponse ID from the response.created stream event

Output

ParameterTypeDescription
conversationIdstringGenie conversation ID
messageIdstringGenie message ID
statusstringMessage status (SUBMITTED, FETCHING_METADATA, FILTERING_CONTEXT, ASKING_AI, PENDING_WAREHOUSE, EXECUTING_QUERY, COMPLETED, FAILED, CANCELLED, QUERY_RESULT_EXPIRED)
contentstringThe question that was asked
answerstringGenie's text answer or summary
followUpQuestionstringClarifying question Genie asked instead of, or alongside, an answer
queryTitlestringTitle of the generated query
sqlstringSQL query Genie generated
queryDescriptionstringPlain-language description of the generated SQL
queryAttachmentIdstringAttachment ID of the generated query, used to fetch or re-run its result
statementIdstringSQL statement ID of the generated query
rowCountnumberNumber of rows the generated query returned
thoughtsarrayHow Genie interpreted the question and built the SQL (Public Preview)
↳ typestringThought category (THOUGHT_TYPE_DESCRIPTION, THOUGHT_TYPE_UNDERSTANDING, THOUGHT_TYPE_DATA_SOURCING, THOUGHT_TYPE_INSTRUCTIONS, THOUGHT_TYPE_STEPS)
↳ contentstringMarkdown-formatted thought
suggestedQuestionsarrayFollow-up questions suggested by Genie
visualizationsarrayCharts Genie generated (only when visualization was requested)
↳ attachmentIdstringVisualization attachment ID, used to download the chart
↳ titlestringChart title
↳ queryAttachmentIdstringQuery attachment the chart was built from
errorstringWhy Genie failed to answer
errorTypestringGenie error type
createdTimestampnumberWhen the message was created