Prerequisites
- A Databricks workspace and SQL warehouse the agent should use
- Either a PAT, or a service principal client ID and secret, with access to the catalogs and warehouses you need
- An agent you can edit
Setup
- Open the agent → Toolkits → add Databricks.
- Create a connection with:
- Workspace host (required) — for example
https://dbc-xxxx.cloud.databricks.com - SQL warehouse ID (required)
- Either a personal access token, or client ID + client secret for a service principal
- Workspace host (required) — for example
- Save the agent.
@-mention Databricks tools in the personality prompt for catalog and SQL tasks.
Available tools
Unity Catalog & SQL
Workspace & API
Use cases
- Discover catalogs and table schemas before writing a query
- Run analytical SQL and summarize results in chat
- Inspect lineage for a table before changing a pipeline
- Export a notebook for review or troubleshooting
Tips
- Access is limited to what the PAT or service principal can see (Unity Catalog grants and warehouse permissions).
- Notebook access can differ from UC table grants — exporting a notebook needs workspace ACLs (
CAN_READor higher). - Prefer bounded SQL (
LIMIT, filters) for interactive exploration. - Store tokens and secrets in a saved connection — do not put them in the personality prompt.