Create and query Databricks Genie Spaces for natural language SQL exploration. Use when building Genie Spaces, exporting and importing Genie Spaces, migrating Genie Spaces between workspaces or environments, or asking questions via the Genie Conversation API.
89
86%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
Create, manage, and query Databricks Genie Spaces - natural language interfaces for SQL-based data exploration.
Genie Spaces allow users to ask natural language questions about structured data in Unity Catalog. The system translates questions into SQL queries, executes them on a SQL warehouse, and presents results conversationally.
Use this skill when:
| Tool | Purpose |
|---|---|
create_or_update_genie | Create or update a Genie Space (supports serialized_space) |
get_genie | Get space details (by ID and support include_serialized_space parameter) or list all spaces (no ID) |
delete_genie | Delete a Genie Space |
migrate_genie | Export (type="export") or import (type="import") a Genie Space for cloning / migration |
| Tool | Purpose |
|---|---|
ask_genie | Ask a question or follow-up (conversation_id optional) |
| Tool | Purpose |
|---|---|
get_table_stats_and_schema | Inspect table schemas before creating a space |
execute_sql | Test SQL queries directly |
Before creating a Genie Space, understand your data:
get_table_stats_and_schema(
catalog="my_catalog",
schema="sales",
table_stat_level="SIMPLE"
)create_or_update_genie(
display_name="Sales Analytics",
table_identifiers=[
"my_catalog.sales.customers",
"my_catalog.sales.orders"
],
description="Explore sales data with natural language",
sample_questions=[
"What were total sales last month?",
"Who are our top 10 customers?"
]
)ask_genie(
space_id="your_space_id",
question="What were total sales last month?"
)
# Returns: SQL, columns, data, row_countExport a space (preserves all tables, instructions, SQL examples, and layout):
exported = migrate_genie(type="export", space_id="your_space_id")
# exported["serialized_space"] contains the full configClone to a new space (same catalog):
migrate_genie(
type="import",
warehouse_id=exported["warehouse_id"],
serialized_space=exported["serialized_space"],
title=exported["title"], # override title; omit to keep original
description=exported["description"],
)Cross-workspace migration: Each MCP server is workspace-scoped. Configure one server entry per workspace profile in your IDE's MCP config, then
migrate_genie(type="export")from the source server andmigrate_genie(type="import")via the target server. See spaces.md §Migration for the full workflow.
Before creating a Genie Space:
Use these skills in sequence:
databricks-synthetic-data-gen - Generate raw parquet filesdatabricks-spark-declarative-pipelines - Create bronze/silver/gold tablesSee spaces.md §Troubleshooting for a full list of issues and solutions.
b4071a0
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.