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
| Name | Required | Description | Default |
|---|---|---|---|
| chart_id | Yes |
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}")