Skip to main content
Glama
startreedata

StarTree MCP Server for Apache Pinot

Official
by startreedata

get-schema

Retrieve a specific schema by its name from the StarTree MCP Server for Apache Pinot, enabling quick access to structured data configurations.

Instructions

Fetch a schema by name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNameYes

Implementation Reference

  • MCP tool handler for 'get_schema': calls pinot_client.get_schema and returns JSON string or error.
    @mcp.tool
    def get_schema(schemaName: str) -> str:
        """Fetch a schema by name"""
        try:
            results = pinot_client.get_schema(schemaName=schemaName)
            return json.dumps(results, indent=2)
        except Exception as e:
            return f"Error: {str(e)}"
  • PinotClient method that performs HTTP GET request to retrieve schema from Pinot controller.
    def get_schema(self, schemaName: str) -> dict[str, Any]:
        url = f"{self.config.controller_url}/{PinotEndpoints.SCHEMAS}/{schemaName}"
        headers = self._create_auth_headers()
        response = requests.get(
            url,
            headers=headers,
            timeout=(self.config.connection_timeout, self.config.request_timeout),
            verify=True,
        )
        response.raise_for_status()
        return response.json()
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. 'Fetch' implies a read operation, but the description doesn't specify whether this requires authentication, what happens if the schema doesn't exist, rate limits, or what format the returned data takes. This leaves significant behavioral gaps for a tool with no annotation coverage.

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 at just three words, front-loading the essential information with zero wasted language. Every word earns its place in communicating the core function.

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

Completeness2/5

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

For a tool with no annotations, no output schema, and minimal parameter documentation, the description is insufficiently complete. It doesn't address what the tool returns, error conditions, authentication requirements, or how it differs from similar schema-related tools in the sibling list. The context demands more comprehensive guidance.

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

Parameters2/5

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

With 0% schema description coverage and a single required parameter 'schemaName', the description adds minimal value beyond the schema. It mentions 'by name' which hints at the parameter's purpose, but doesn't explain what constitutes a valid schema name, format expectations, or whether it's case-sensitive. The description doesn't adequately 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.

Purpose4/5

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

The description clearly states the action ('fetch') and resource ('schema by name'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'tableconfig-schema-details' or 'update-schema' that also involve schemas, so it doesn't reach the highest clarity level.

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

Usage Guidelines2/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 siblings like 'tableconfig-schema-details' and 'update-schema' that also handle schemas, there's no indication of when this specific fetch operation is appropriate versus other schema-related operations.

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