superset_sqllab_get_saved_queries
Retrieve saved SQL queries from SQL Lab to access previous work and continue analysis. This tool fetches paginated results of queries with details like ID, label, and database.
Instructions
Get a list of saved queries from SQL Lab
Makes a request to the /api/v1/saved_query/ endpoint to retrieve all saved queries the current user has access to. Results are paginated.
Returns: A dictionary containing saved query information including id, label, and database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:1204-1218 (handler)The main handler function implementing the 'superset_sqllab_get_saved_queries' tool. It is registered via @mcp.tool() decorator and uses the make_api_request helper to fetch saved queries from Superset's /api/v1/saved_query/ endpoint.@mcp.tool() @requires_auth @handle_api_errors async def superset_sqllab_get_saved_queries(ctx: Context) -> Dict[str, Any]: """ Get a list of saved queries from SQL Lab Makes a request to the /api/v1/saved_query/ endpoint to retrieve all saved queries the current user has access to. Results are paginated. Returns: A dictionary containing saved query information including id, label, and database """ return await make_api_request(ctx, "get", "/api/v1/saved_query/")