Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_chart_delete

Remove charts from Apache Superset using the Superset MCP Integration server. This permanent deletion action helps manage visualization clutter by eliminating unwanted charts.

Instructions

Delete a chart

Makes a request to the /api/v1/chart/{id} DELETE endpoint to remove a chart. This operation is permanent and cannot be undone.

Args: chart_id: ID of the chart to delete

Returns: A dictionary with deletion confirmation message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chart_idYes

Implementation Reference

  • main.py:718-739 (handler)
    The main handler function for the 'superset_chart_delete' tool. It uses the make_api_request helper to send a DELETE request to the Superset /api/v1/chart/{chart_id} endpoint, handling the response and providing a success message.
    @mcp.tool()
    @requires_auth
    @handle_api_errors
    async def superset_chart_delete(ctx: Context, chart_id: int) -> Dict[str, Any]:
        """
        Delete a chart
    
        Makes a request to the /api/v1/chart/{id} DELETE endpoint to remove a chart.
        This operation is permanent and cannot be undone.
    
        Args:
            chart_id: ID of the chart to delete
    
        Returns:
            A dictionary with deletion confirmation message
        """
        response = await make_api_request(ctx, "delete", f"/api/v1/chart/{chart_id}")
    
        if not response.get("error"):
            return {"message": f"Chart {chart_id} deleted successfully"}
    
        return response
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