Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_sqllab_get_results

Retrieve results from a previously executed SQL query in Apache Superset using the query's result key.

Instructions

Get results of a previously executed SQL query

Makes a request to the /api/v1/sqllab/results/ endpoint to retrieve results for an asynchronous query using its result key.

Args: key: Result key to retrieve

Returns: A dictionary with query results including column information and data rows

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes

Implementation Reference

  • The handler function implementing the superset_sqllab_get_results tool. It makes an authenticated GET request to Superset's /api/v1/sqllab/results/ endpoint with the provided key parameter to fetch the results of a previously executed SQL query.
    @requires_auth
    @handle_api_errors
    async def superset_sqllab_get_results(ctx: Context, key: str) -> Dict[str, Any]:
        """
        Get results of a previously executed SQL query
    
        Makes a request to the /api/v1/sqllab/results/ endpoint to retrieve results
        for an asynchronous query using its result key.
    
        Args:
            key: Result key to retrieve
    
        Returns:
            A dictionary with query results including column information and data rows
        """
        return await make_api_request(
            ctx, "get", f"/api/v1/sqllab/results/", params={"key": key}
        )
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aptro/superset-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server