Skip to main content
Glama
startreedata

StarTree MCP Server for Apache Pinot

Official
by startreedata

tableconfig-schema-details

Retrieve table configuration and schema details for Apache Pinot by specifying the table name, enabling precise management and optimization within the StarTree MCP Server environment.

Instructions

Get table config and schema

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableNameYes

Implementation Reference

  • The main handler function for the 'tableconfig-schema-details' tool. It is decorated with @mcp.tool, which registers it and infers the schema from the type annotations (tableName: str). Calls the helper method on pinot_client and returns JSON.
    def tableconfig_schema_details(tableName: str) -> str: """Get table config and schema""" try: results = pinot_client.get_tableconfig_schema_detail(tableName=tableName) return json.dumps(results, indent=2) except Exception as e: return f"Error: {str(e)}"
  • Supporting method in PinotClient that fetches the table configuration from the Pinot controller API endpoint. This is called by the tool handler to retrieve the data.
    def get_tableconfig_schema_detail( self, tableName: str, params: dict[str, Any] | None = None, ) -> dict[str, Any]: endpoint = PinotEndpoints.TABLE_CONFIG.format(tableName) url = f"{self.config.controller_url}/{endpoint}" logger.debug(f"Fetching table config for {tableName} from: {url}") response = self.http_request(url) return response.json()

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/startreedata/mcp-pinot'

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