Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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/")

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