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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"catalog": "<catalog>",
"schema": "<schema>"
},
"name": "list_volumes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalog | Yes | ||
| schema | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | 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}")