superset_sqllab_get_bootstrap_data
Retrieve SQL Lab configuration data including allowed databases and settings to initialize the SQL query interface in Apache Superset.
Instructions
Get the bootstrap data for SQL Lab
Makes a request to the /api/v1/sqllab/ endpoint to retrieve configuration data needed for the SQL Lab interface.
Returns: A dictionary with SQL Lab configuration including allowed databases and settings
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "superset_sqllab_get_bootstrap_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:1328-1342 (handler)The main handler function for the 'superset_sqllab_get_bootstrap_data' tool. It is decorated with @mcp.tool() for registration and makes a GET request to Superset's /api/v1/sqllab/ endpoint to fetch bootstrap configuration data for SQL Lab.
@mcp.tool() @requires_auth @handle_api_errors async def superset_sqllab_get_bootstrap_data(ctx: Context) -> Dict[str, Any]: """ Get the bootstrap data for SQL Lab Makes a request to the /api/v1/sqllab/ endpoint to retrieve configuration data needed for the SQL Lab interface. Returns: A dictionary with SQL Lab configuration including allowed databases and settings """ return await make_api_request(ctx, "get", "/api/v1/sqllab/")