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
| Name | Required | Description | Default |
|---|---|---|---|
| tableName | Yes |
Implementation Reference
- mcp_pinot/server.py:124-131 (handler)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)}"
- mcp_pinot/pinot_client.py:375-384 (helper)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()