superset_dashboard_create
Create new dashboards in Apache Superset by specifying titles and configuration metadata to visualize data through the Superset MCP Integration server.
Instructions
Create a new dashboard in Superset
Makes a request to the /api/v1/dashboard/ POST endpoint to create a new dashboard.
Args: dashboard_title: Title of the dashboard json_metadata: Optional JSON metadata for dashboard configuration, can include layout, color scheme, and filter configuration
Returns: A dictionary with the created dashboard information including its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dashboard_title | Yes | ||
| json_metadata | No |
Implementation Reference
- main.py:547-568 (handler)The handler function that implements the superset_dashboard_create tool. It creates a new dashboard by sending a POST request to Superset's /api/v1/dashboard/ endpoint with the provided title and optional metadata.async def superset_dashboard_create( ctx: Context, dashboard_title: str, json_metadata: Dict[str, Any] = None ) -> Dict[str, Any]: """ Create a new dashboard in Superset Makes a request to the /api/v1/dashboard/ POST endpoint to create a new dashboard. Args: dashboard_title: Title of the dashboard json_metadata: Optional JSON metadata for dashboard configuration, can include layout, color scheme, and filter configuration Returns: A dictionary with the created dashboard information including its ID """ payload = {"dashboard_title": dashboard_title} if json_metadata: payload["json_metadata"] = json_metadata return await make_api_request(ctx, "post", "/api/v1/dashboard/", data=payload)