get_table_detail
Retrieve detailed metadata and properties for Delta Lake tables in Databricks, including schema, partitioning, and table statistics.
Instructions
View Delta table details (DESCRIBE DETAIL)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalog | Yes | ||
| schema | Yes | ||
| table | Yes |
Implementation Reference
- tools/delta.py:20-25 (handler)Implementation of the get_table_detail tool, which executes a DESCRIBE DETAIL SQL query for the provided catalog, schema, and table.
def get_table_detail(ctx: Context, catalog: str, schema: str, table: str) -> List[Dict[str, Any]]: """View Delta table details (DESCRIBE DETAIL)""" cat = safe_identifier(catalog, "catalog") sch = safe_identifier(schema, "schema") tbl = safe_identifier(table, "table") return execute_sql(ctx, f"DESCRIBE DETAIL {cat}.{sch}.{tbl}")