Skip to main content
Glama
startreedata

StarTree MCP Server for Apache Pinot

Official
by startreedata

get-table-config

Retrieve table configuration details from Apache Pinot by specifying the table name and type using the provided tool for StarTree MCP Server.

Instructions

Get table configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableNameYes
tableTypeNo

Implementation Reference

  • MCP tool handler for 'get_table_config'. Registered via @mcp.tool decorator. Executes by calling pinot_client.get_table_config and returns JSON-formatted result or error message.
    @mcp.tool
    def get_table_config(tableName: str, tableType: Optional[str] = None) -> str:
        """Get table configuration"""
        try:
            results = pinot_client.get_table_config(
                tableName=tableName,
                tableType=tableType,
            )
            return json.dumps(results, indent=2)
        except Exception as e:
            return f"Error: {str(e)}"
  • Supporting method in PinotClient class that performs the actual HTTP request to retrieve table configuration from Pinot controller endpoint /tables/{tableName} with optional tableType query parameter.
    def get_table_config(
        self,
        tableName: str,
        tableType: str | None = None,
    ) -> dict[str, Any]:
        url = f"{self.config.controller_url}/{PinotEndpoints.TABLES}/{tableName}"
        params: dict[str, str] = {}
        if tableType:
            params["type"] = tableType
        headers = self._create_auth_headers()
        response = requests.get(
            url,
            headers=headers,
            params=params,
            timeout=(self.config.connection_timeout, self.config.request_timeout),
            verify=True,
        )
        response.raise_for_status()
        raw_response = response.json()
        if tableType and tableType.upper() in raw_response:
            return raw_response[tableType.upper()]
        if not tableType and ("OFFLINE" in raw_response or "REALTIME" in raw_response):
            return raw_response
        return raw_response
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. The description only states 'Get table configuration', offering no information about whether this is a read-only operation, what permissions are required, how errors are handled, or what the output format might be. This is inadequate for a tool with parameters and no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with just three words, making it front-loaded and free of unnecessary details. However, this conciseness comes at the cost of under-specification, but based solely on structure and brevity, it earns full marks for being succinct.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 2 parameters with 0% schema coverage, no annotations, and no output schema, the description is completely inadequate. It doesn't explain what table configuration includes, how to use the parameters, what the tool returns, or how it differs from sibling tools. This leaves significant gaps for an AI agent to understand and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, meaning neither parameter ('tableName' and 'tableType') is documented in the schema. The description adds no information about these parameters—it doesn't explain what 'tableName' refers to, what 'tableType' might be, or how they affect the configuration retrieval. This fails to compensate for the lack of schema documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get table configuration' is essentially a tautology that restates the tool name 'get-table-config' with minimal elaboration. It specifies the verb 'Get' and resource 'table configuration', but provides no additional detail about what table configuration entails or distinguishes it from sibling tools like 'table-details' or 'tableconfig-schema-details'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. With multiple sibling tools related to tables and configurations (e.g., 'table-details', 'tableconfig-schema-details', 'list-tables'), there is no indication of when this specific tool is appropriate, what prerequisites exist, or what distinguishes it from other options.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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