Skip to main content
Glama
ChrisChoTW

databricks-mcp

by ChrisChoTW

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
NameRequiredDescriptionDefault
catalogYes
schemaYes

Implementation Reference

  • 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}")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChrisChoTW/databricks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server