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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mpo_mcp/server.py:176-180 (handler)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()
- mpo_mcp/databricks_tools.py:39-69 (helper)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)}")