superset_chart_get_by_id
Retrieve detailed information about a specific chart from Apache Superset, including its visualization configuration and metadata, by providing the 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)The handler function implementing the 'superset_chart_get_by_id' MCP tool. It fetches detailed information about a specific chart from the Superset API using the make_api_request helper, after authentication checks via decorators.@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}")