Skip to main content
Glama
ChrisChoTW

databricks-mcp

by ChrisChoTW

list_schemas

Retrieve all schemas within a specified Databricks catalog to organize and access database structures for querying and metadata exploration.

Instructions

List schemas in the specified catalog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
catalog_nameYes

Implementation Reference

  • The list_schemas function executes the "SHOW SCHEMAS IN {catalog}" SQL query to retrieve a list of schemas in a specific catalog, using safe_identifier to prevent SQL injection. It is registered as an MCP tool using the @mcp.tool decorator.
    def list_schemas(ctx: Context, catalog_name: str) -> List[Dict[str, Any]]:
        """List schemas in the specified catalog"""
        catalog = safe_identifier(catalog_name, "catalog_name")
        return execute_sql(ctx, f"SHOW SCHEMAS IN {catalog}")

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