Skip to main content
Glama
ChrisChoTW

databricks-mcp

by ChrisChoTW

list_tables

Retrieve all tables within a specified Databricks schema and catalog to explore available data structures.

Instructions

List tables in the specified schema

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
catalog_nameYes
schema_nameYes

Implementation Reference

  • The handler implementation for the `list_tables` MCP tool, which sanitizes identifiers and executes a SQL query.
    @mcp.tool
    def list_tables(ctx: Context, catalog_name: str, schema_name: str) -> List[Dict[str, Any]]:
        """List tables in the specified schema"""
        catalog = safe_identifier(catalog_name, "catalog_name")
        schema = safe_identifier(schema_name, "schema_name")
        return execute_sql(ctx, f"SHOW TABLES IN {catalog}.{schema}")

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