Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_chart_get_by_id

Retrieve detailed information about a specific chart from Apache Superset, including visualization configuration and metadata, by providing its unique chart ID.

Instructions

Get details for a specific chart

Makes a request to the /api/v1/chart/{id} endpoint to retrieve detailed information about a specific chart/slice.

Args: chart_id: ID of the chart to retrieve

Returns: A dictionary with complete chart information including visualization configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chart_idYes

Implementation Reference

  • main.py:640-657 (handler)
    This is the main handler function for the 'superset_chart_get_by_id' tool. It is decorated with @mcp.tool() for registration, @requires_auth to ensure authentication, and @handle_api_errors for error handling. The function makes a GET request to the Superset API endpoint /api/v1/chart/{chart_id} using the shared make_api_request helper, which handles token refresh, CSRF, etc.
    @mcp.tool()
    @requires_auth
    @handle_api_errors
    async def superset_chart_get_by_id(ctx: Context, chart_id: int) -> Dict[str, Any]:
        """
        Get details for a specific chart
    
        Makes a request to the /api/v1/chart/{id} endpoint to retrieve detailed
        information about a specific chart/slice.
    
        Args:
            chart_id: ID of the chart to retrieve
    
        Returns:
            A dictionary with complete chart information including visualization configuration
        """
        return await make_api_request(ctx, "get", f"/api/v1/chart/{chart_id}")
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a GET operation to retrieve information, implying it's read-only and non-destructive. However, it doesn't mention authentication requirements, rate limits, error conditions, or what happens if the chart ID doesn't exist. The endpoint reference adds some technical context but lacks operational details.

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

Conciseness4/5

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

The description is well-structured with clear sections: purpose statement, endpoint reference, Args, and Returns. Each sentence earns its place. However, the endpoint detail could be considered implementation-specific rather than user-focused, and the 'Returns' section could be more concise by just stating it returns complete chart information rather than specifying 'dictionary' format.

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

Completeness3/5

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

For a simple read operation with 1 parameter and no output schema, the description provides adequate basics: what it does, what parameter it needs, and what it returns. However, it lacks important context about authentication (all Superset tools typically require auth), error handling, and relationship to sibling tools. Without annotations or output schema, more behavioral context would be helpful.

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

Parameters4/5

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

The description adds meaningful context for the single parameter 'chart_id' by explaining it's 'ID of the chart to retrieve'. With 0% schema description coverage (the schema only has title 'Chart Id' and type 'integer'), this description provides essential semantic information that the schema lacks. For a single parameter tool, this is adequate compensation.

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 tool's purpose: 'Get details for a specific chart' with the verb 'get' and resource 'chart'. It distinguishes from siblings like 'superset_chart_list' (list all charts) and 'superset_chart_create' (create new chart) by focusing on retrieving details for a specific ID. However, it doesn't explicitly mention how it differs from 'superset_dashboard_get_by_id' which serves a similar purpose for dashboards.

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

Usage Guidelines3/5

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

The description implies usage context through the phrase 'specific chart' and mentions the endpoint '/api/v1/chart/{id}', suggesting it should be used when you have a chart ID. However, it provides no explicit guidance on when to use this vs. alternatives like 'superset_chart_list' for browsing charts or 'superset_dashboard_get_by_id' for dashboard details. No prerequisites or exclusions are mentioned.

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

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/aptro/superset-mcp'

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