databricks_get_catalog_info
Retrieve detailed information about a Databricks Unity Catalog including schema structure and metadata for data management and analysis workflows.
Instructions
Get detailed information about a Databricks catalog.
Args: catalog_name: Catalog name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalog_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mpo_mcp/databricks_tools.py:318-351 (handler)Core handler implementation in DatabricksTools class that retrieves detailed catalog information using the Databricks SDK.
async def get_catalog_info(self, catalog_name: str) -> Dict[str, Any]: """ Get detailed information about a catalog. Args: catalog_name: Catalog name Returns: Catalog information """ self._check_client() try: catalog = self.client.catalogs.get(name=catalog_name) result = { "name": catalog.name, "comment": catalog.comment, "owner": catalog.owner, "created_at": catalog.created_at, "updated_at": catalog.updated_at, "storage_root": catalog.storage_root, } # Add properties if available if hasattr(catalog, "properties") and catalog.properties: result["properties"] = catalog.properties return result except Exception as e: logger.error(f"Databricks API error: {e}") raise ValueError(f"Failed to get catalog info: {str(e)}") - mpo_mcp/server.py:234-241 (registration)MCP server tool registration and thin wrapper handler delegating to DatabricksTools.get_catalog_info
@mcp.tool() async def databricks_get_catalog_info(catalog_name: str) -> dict: """Get detailed information about a Databricks catalog. Args: catalog_name: Catalog name """ return await databricks_tools.get_catalog_info(catalog_name=catalog_name) - llm_assistant.py:302-315 (schema)Input schema definition for the tool used in Anthropic Claude integration.
{ "name": "databricks_get_catalog_info", "description": "Get detailed information about a Databricks catalog", "input_schema": { "type": "object", "properties": { "catalog_name": { "type": "string", "description": "Catalog name", } }, "required": ["catalog_name"], }, }, - llm_assistant.py:418-421 (helper)Dispatch logic in llm_assistant.py that calls the tool handler during tool execution.
elif tool_name == "databricks_get_catalog_info": result = await databricks_tools.get_catalog_info( catalog_name=tool_input["catalog_name"] ) - quick_query.py:107-110 (helper)Dispatch logic in quick_query.py CLI script that calls the tool handler.
elif tool_name == "databricks_get_catalog_info": result = await databricks.get_catalog_info( catalog_name=args["catalog_name"] )