databricks-advanced-mcp
v0.0.7Advanced MCP server for Databricks workspace intelligence — dependency scanning, impact analysis, notebook review, and job/pipeline operations.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
execute_query Execute Query
Execute a SQL query against a Databricks SQL warehouse. Runs any SQL statement (SELECT, DDL, DML) and returns structured results. Results are limited to the specified maximum row count.
| Parameter | Type | Description |
|---|---|---|
query * | string | SQL query to execute. |
limit | integer | Maximum number of rows to return (default: 1000). |
get_table_info Get Table Info
Get detailed metadata for a Databricks table. Returns schema (columns with types/nullability), row count, table properties, storage location, and table type.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Name of the table. |
catalog | Catalog name (defaults to DATABRICKS_CATALOG env var). | |
schema | Schema/database name (defaults to DATABRICKS_SCHEMA env var). |
list_tables List Tables
List all tables in a Databricks catalog and schema. Returns table names, types, and comments.
| Parameter | Type | Description |
|---|---|---|
catalog | Catalog name (defaults to DATABRICKS_CATALOG env var). | |
schema | Schema/database name (defaults to DATABRICKS_SCHEMA env var). |
scan_notebook Scan Notebook
Scan a Databricks notebook for table references. Fetches the notebook source via Workspace API, parses SQL cells and PySpark code, and returns all table references found.
| Parameter | Type | Description |
|---|---|---|
notebook_path * | string | Workspace path to the notebook (e.g. /Workspace/Users/me/my_notebook). |
scan_jobs Scan Jobs
Scan all Databricks jobs to extract table dependencies. Lists all jobs via the Jobs API, inspects task definitions (notebook tasks, SQL tasks, DLT pipeline tasks), and extracts table references from associated notebooks and SQL statements.
scan_dlt_pipelines Scan Dlt Pipelines
Scan all DLT pipelines to extract table dependencies. Retrieves pipeline definitions via the Pipelines API and extracts source/target table references from configuration and associated notebooks.
scan_dlt_pipeline Scan Dlt Pipeline
Scan a single DLT pipeline to extract table dependencies. Retrieves the pipeline definition by ID and extracts source/target table references from configuration and associated notebooks.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | string | The ID of the DLT pipeline to scan. |
build_dependency_graph Build Dependency Graph
Build the workspace dependency graph. Orchestrates scanning of all notebooks, jobs, and DLT pipelines to build a unified directed acyclic graph. Results are cached.
| Parameter | Type | Description |
|---|---|---|
path | string | Notebook path prefix when scope="path" (e.g. "/Workspace/Repos/team/project"). Ignored when scope="workspace". |
scope | string | Scan scope — "workspace" (full scan, default) or "path" (scoped to a notebook path prefix). |
get_table_dependencies Get Table Dependencies
Get upstream and downstream dependencies for a table. Queries the cached dependency graph to find all assets that produce (upstream) or consume (downstream) the given table.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Fully-qualified table name (catalog.schema.table). |
refresh_graph Refresh Graph
Invalidate and rebuild the dependency graph cache. Forces a full rebuild of the dependency graph regardless of cache TTL status.
analyze_impact Analyze Impact
Analyze the impact of a proposed change on downstream assets. Traverses the dependency graph to identify all affected assets and generates a structured impact report with severity levels and remediation suggestions.
| Parameter | Type | Description |
|---|---|---|
change_type * | string | Type of change — "column_drop", "schema_change", or "pipeline_failure". |
column_name | string | Column being dropped (required for column_drop). |
pipeline_id | string | Pipeline or job ID (required for pipeline_failure). |
schema_changes | string | JSON array of changes for schema_change, e.g. [{"action":"remove","column":"col1"}]. |
table_name | string | Target table (required for column_drop and schema_change). |
review_notebook Review Notebook
Review a Databricks notebook for issues and optimization opportunities. Fetches the notebook source, analyzes each code cell against performance rules, coding standards, and optimization suggestions, then returns structured findings.
| Parameter | Type | Description |
|---|---|---|
notebook_path * | string | Workspace path to the notebook. |
categories | string | Comma-separated categories to check: "performance", "standards", "optimization", or "all" (default). |
list_jobs List Jobs
List all Databricks jobs with status and schedule.
| Parameter | Type | Description |
|---|---|---|
name_filter | string | Optional name substring to filter jobs (case-insensitive). |
get_job_status Get Job Status
Get detailed run status and errors for a specific job.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The Databricks job ID. |
list_pipelines List Pipelines
List all DLT pipelines with state and latest update status.
| Parameter | Type | Description |
|---|---|---|
name_filter | string | Optional name substring to filter pipelines. |
get_pipeline_status Get Pipeline Status
Get detailed status and recent events for a DLT pipeline.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | string | The DLT pipeline ID. |
trigger_rerun Trigger Rerun
Trigger a rerun of a failed or completed job. This is a MUTATING operation. When confirm=False (default), returns a preview of what would happen. Set confirm=True to actually trigger the rerun.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The Databricks job ID to rerun. |
confirm | boolean | Set to True to actually trigger the rerun. |
trigger_job_run Trigger Job Run
Trigger a new run of a Databricks job (run now). Unlike trigger_rerun (which repairs the latest failed run), this tool starts a fresh new run of the job — useful for scheduled jobs, manual triggers, or testing with different parameters. This is a MUTATING operation. When confirm=False (default), returns a preview. Set confirm=True to actually trigger the run.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The Databricks job ID to run. |
confirm | boolean | Set to True to actually trigger the run. |
job_parameters | string | JSON string of key-value pairs to pass as job parameters, e.g. '{"env": "prod", "date": "2026-03-04"}'. Defaults to empty dict (use job defaults). |
list_workspace_notebooks List Workspace Notebooks
List all notebooks in a Databricks workspace path. Recursively traverses the workspace directory tree and returns all notebooks found, with their paths, names, and languages.
| Parameter | Type | Description |
|---|---|---|
max_depth | integer | Maximum directory depth to recurse (default: 10). |
path | string | Workspace path to list from (default: "/"). |
create_job Create Job
Create a new Databricks job with a notebook task. This is a MUTATING operation. When confirm=False (default), returns a preview of what would be created. Set confirm=True to actually create the job.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new job. |
notebook_path * | string | Workspace path to the notebook to run. |
confirm | boolean | Set to True to actually create the job. |
cron_expression | string | Optional Quartz cron expression for scheduling (e.g. "0 0 0 * * ?" for daily at midnight). |
existing_cluster_id | string | ID of an existing cluster to use. If empty, the job will use a new job cluster (serverless or default). |
timezone | string | Timezone for the cron schedule (default: "UTC"). |
create_notebook Create Notebook
Create a new notebook in the Databricks workspace. This is a MUTATING operation. When confirm=False (default), returns a preview of what would be created. Set confirm=True to actually create the notebook.
| Parameter | Type | Description |
|---|---|---|
path * | string | Workspace path for the new notebook (e.g. "/Workspace/dev/my_notebook"). |
confirm | boolean | Set to True to actually create the notebook. |
content | string | Optional initial content for the notebook. |
language | string | Notebook language: PYTHON, SQL, SCALA, or R. |
overwrite | boolean | Whether to overwrite if a notebook exists at the path (default: False). |
workspace_upload Workspace Upload
Upload a local file to a Databricks workspace path. Auto-detects notebook format from file extension (.py, .sql, .scala, .r → SOURCE; .ipynb → JUPYTER; others → AUTO). This is a MUTATING operation. When confirm=False (default), returns a preview. Set confirm=True to upload.
| Parameter | Type | Description |
|---|---|---|
local_path * | string | Path to the local file to upload. |
workspace_path * | string | Target workspace path (e.g. "/Workspace/uploads/etl.py"). |
confirm | boolean | Set to True to actually upload the file. |
overwrite | boolean | Whether to overwrite if an object exists at the path (default: False). |
read_notebook Read Notebook
Read/export the content of a Databricks notebook.
| Parameter | Type | Description |
|---|---|---|
notebook_path * | string | Workspace path to the notebook (e.g. "/Workspace/Users/me/my_notebook"). |
format | string | Export format — "SOURCE" (default), "HTML", or "JUPYTER". |
delete_workspace_item Delete Workspace Item
Delete a notebook, file, or folder from the Databricks workspace. This is a DESTRUCTIVE operation. When confirm=False (default), returns a preview. Set confirm=True to delete.
| Parameter | Type | Description |
|---|---|---|
path * | string | Workspace path to the object to delete. |
confirm | boolean | Set to True to actually delete. |
recursive | boolean | If True and path is a directory, delete all contents recursively. Required for non-empty directories. |
get_workspace_status Get Workspace Status
Get metadata for a workspace object (notebook, directory, file, etc.).
| Parameter | Type | Description |
|---|---|---|
path * | string | Workspace path to the object (e.g. "/Workspace/Users/me/my_notebook"). |
list_catalogs List Catalogs
List all Unity Catalog catalogs accessible to the current principal.
list_schemas List Schemas
List all schemas in a Unity Catalog catalog.
| Parameter | Type | Description |
|---|---|---|
catalog * | string | Name of the catalog to list schemas from. |
describe_schema Describe Schema
Get detailed metadata for a Unity Catalog schema.
| Parameter | Type | Description |
|---|---|---|
catalog * | string | Name of the parent catalog. |
schema * | string | Name of the schema to describe. |
create_schema Create Schema
Create a new schema in a Unity Catalog catalog. This is a MUTATING operation. When confirm=False (default), returns a preview. Set confirm=True to create.
| Parameter | Type | Description |
|---|---|---|
catalog * | string | Name of the parent catalog. |
schema * | string | Name of the schema to create. |
comment | string | Optional description for the schema. |
confirm | boolean | Set to True to actually create the schema. |
drop_schema Drop Schema
Drop a schema from a Unity Catalog catalog. The schema must be empty (no tables, views, or volumes). This is a DESTRUCTIVE operation. When confirm=False (default), returns a preview. Set confirm=True to drop.
| Parameter | Type | Description |
|---|---|---|
catalog * | string | Name of the parent catalog. |
schema * | string | Name of the schema to drop. |
confirm | boolean | Set to True to actually drop the schema. |
list_clusters List Clusters
List all Databricks clusters with state, creator, and node type.
| Parameter | Type | Description |
|---|---|---|
name_filter | string | Optional substring filter — only clusters whose name contains this string (case-insensitive) are returned. |
get_cluster_status Get Cluster Status
Get detailed status and configuration for a Databricks cluster.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | The ID of the cluster to inspect. |
start_cluster Start Cluster
Start a terminated Databricks cluster. This is a MUTATING operation. When confirm=False (default), returns a preview. Set confirm=True to start.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | The ID of the cluster to start. |
confirm | boolean | Set to True to actually start the cluster. |
stop_cluster Stop Cluster
Stop (terminate) a running Databricks cluster. This is a MUTATING operation. When confirm=False (default), returns a preview. Set confirm=True to stop.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | The ID of the cluster to stop. |
confirm | boolean | Set to True to actually stop the cluster. |
restart_cluster Restart Cluster
Restart a running Databricks cluster. This is a MUTATING operation. When confirm=False (default), returns a preview. Set confirm=True to restart.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | The ID of the cluster to restart. |
confirm | boolean | Set to True to actually restart the cluster. |
list_warehouses List Warehouses
List all SQL warehouses with state, size, and type.
| Parameter | Type | Description |
|---|---|---|
name_filter | string | Optional substring filter — only warehouses whose name contains this string (case-insensitive) are returned. |
get_warehouse_status Get Warehouse Status
Get detailed status and configuration for a SQL warehouse.
| Parameter | Type | Description |
|---|---|---|
warehouse_id * | string | The ID of the SQL warehouse to inspect. |
start_warehouse Start Warehouse
Start a stopped SQL warehouse. This is a MUTATING operation. When confirm=False (default), returns a preview. Set confirm=True to start.
| Parameter | Type | Description |
|---|---|---|
warehouse_id * | string | The ID of the SQL warehouse to start. |
confirm | boolean | Set to True to actually start the warehouse. |
stop_warehouse Stop Warehouse
Stop a running SQL warehouse. This is a MUTATING operation. When confirm=False (default), returns a preview. Set confirm=True to stop.
| Parameter | Type | Description |
|---|---|---|
warehouse_id * | string | The ID of the SQL warehouse to stop. |
confirm | boolean | Set to True to actually stop the warehouse. |
list_volumes List Volumes
List Unity Catalog volumes in a given catalog and schema.
| Parameter | Type | Description |
|---|---|---|
catalog * | string | Name of the catalog. |
schema * | string | Name of the schema. |
get_volume_info Get Volume Info
Get detailed metadata for a Unity Catalog volume.
| Parameter | Type | Description |
|---|---|---|
catalog * | string | Name of the parent catalog. |
schema * | string | Name of the parent schema. |
volume_name * | string | Name of the volume. |
list_volume_files List Volume Files
List files and directories inside a Unity Catalog volume.
| Parameter | Type | Description |
|---|---|---|
volume_path * | string | Path inside the volume using the Volumes path format, e.g. "/Volumes/catalog/schema/volume_name" or "/Volumes/catalog/schema/volume_name/subdir". |
read_volume_file Read Volume File
Read the contents of a file from a Unity Catalog volume. Reads up to max_bytes of the file. For binary files, returns base64-encoded content.
| Parameter | Type | Description |
|---|---|---|
volume_path * | string | Full path to the file, e.g. "/Volumes/catalog/schema/volume/file.csv". |
max_bytes | integer | Maximum number of bytes to read (default: 1 MB). |