Skip to main content
Glama

databricks_list_catalogs

Retrieve all available catalogs from Databricks Unity Catalog to explore and manage data schemas across your data platform.

Instructions

List all catalogs in Databricks Unity Catalog.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler and registration for 'databricks_list_catalogs'. This is the entry point for the tool in the FastMCP server, delegating to DatabricksTools.list_catalogs().
    @mcp.tool() async def databricks_list_catalogs() -> list: """List all catalogs in Databricks Unity Catalog.""" return await databricks_tools.list_catalogs()
  • Core implementation of the catalog listing logic in DatabricksTools class, using Databricks SDK to fetch and format catalog information.
    async def list_catalogs(self) -> List[Dict[str, Any]]: """ List all catalogs in Unity Catalog. Returns: List of catalog information """ self._check_client() try: catalogs = self.client.catalogs.list() results = [] for catalog in catalogs: results.append( { "name": catalog.name, "comment": catalog.comment, "owner": catalog.owner, "created_at": catalog.created_at, "updated_at": catalog.updated_at, "storage_root": catalog.storage_root, } ) return results except Exception as e: logger.error(f"Databricks API error: {e}") raise ValueError(f"Failed to list catalogs: {str(e)}")

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/bsangars/mcp'

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