superset_query_list
Retrieve query history from Apache Superset to monitor SQL execution status, duration, and results through paginated API requests.
Instructions
Get a list of queries from Superset
Makes a request to the /api/v1/query/ endpoint to retrieve query history. Results are paginated and include both finished and running queries.
Returns: A dictionary containing query information including status, duration, and SQL
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:1416-1428 (handler)The handler function for the 'superset_query_list' tool. It lists recent queries from Superset by making a GET request to the /api/v1/query/ endpoint using the shared make_api_request helper. Decorated with @mcp.tool() for registration, @requires_auth for authentication check, and @handle_api_errors for error handling.@requires_auth @handle_api_errors async def superset_query_list(ctx: Context) -> Dict[str, Any]: """ Get a list of queries from Superset Makes a request to the /api/v1/query/ endpoint to retrieve query history. Results are paginated and include both finished and running queries. Returns: A dictionary containing query information including status, duration, and SQL """ return await make_api_request(ctx, "get", "/api/v1/query/")