Skip to main content
Glama
startreedata

StarTree MCP Server for Apache Pinot

Official
by startreedata

update-table-config

Modify table configurations in Apache Pinot by updating the table name and config JSON. Skip specified validation types to customize updates.

Instructions

Update table configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableConfigJsonYes
tableNameYes
validationTypesToSkipNo

Implementation Reference

  • FastMCP tool handler for the 'update_table_config' tool. Defines input schema via type annotations (tableName: str, tableConfigJson: str, optional validationTypesToSkip: str) and delegates execution to PinotClient.update_table_config, returning JSON results or error.
    @mcp.tool def update_table_config( tableName: str, tableConfigJson: str, validationTypesToSkip: Optional[str] = None, ) -> str: """Update table configuration""" try: results = pinot_client.update_table_config( tableName, tableConfigJson, validationTypesToSkip, ) return json.dumps(results, indent=2) except Exception as e: return f"Error: {str(e)}"
  • Core implementation of table config update logic. Performs authenticated HTTP PUT request to Pinot controller's /tables/{tableName} endpoint with tableConfigJson payload and optional validationTypesToSkip param.
    def update_table_config( self, tableName: str, tableConfigJson: str, validationTypesToSkip: str | None = None, ) -> dict[str, Any]: url = f"{self.config.controller_url}/{PinotEndpoints.TABLES}/{tableName}" params: dict[str, str] = {} if validationTypesToSkip: params["validationTypesToSkip"] = validationTypesToSkip headers = self._create_auth_headers() headers["Content-Type"] = "application/json" response = requests.put( url, headers=headers, params=params, data=tableConfigJson, timeout=(self.config.connection_timeout, self.config.request_timeout), verify=True, ) response.raise_for_status() try: return response.json() except requests.exceptions.JSONDecodeError: return { "status": "success", "message": "Table config update request processed.", "response_body": response.text, }

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