list_volumes
Retrieve Unity Catalog volumes from Databricks to manage and organize data storage. Specify catalog and schema to filter results.
Instructions
List Unity Catalog Volumes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalog | Yes | ||
| schema | Yes |
Implementation Reference
- tools/delta.py:48-53 (handler)The handler function `list_volumes` uses `@mcp.tool` for registration and executes a SQL query to list Unity Catalog Volumes.
@mcp.tool def list_volumes(ctx: Context, catalog: str, schema: str) -> List[Dict[str, Any]]: """List Unity Catalog Volumes""" cat = safe_identifier(catalog, "catalog") sch = safe_identifier(schema, "schema") return execute_sql(ctx, f"SHOW VOLUMES IN {cat}.{sch}")