Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_saved_query_get_by_id

Retrieve details of a saved SQL query from Apache Superset by its unique ID to access SQL text and database information.

Instructions

Get details for a specific saved query

Makes a request to the /api/v1/saved_query/{id} endpoint to retrieve information about a saved SQL query.

Args: query_id: ID of the saved query to retrieve

Returns: A dictionary with the saved query details including SQL text and database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
query_idYes

Implementation Reference

  • Handler function decorated with @mcp.tool() that implements the tool by calling make_api_request to GET /api/v1/saved_query/{query_id}.
    @mcp.tool() @requires_auth @handle_api_errors async def superset_saved_query_get_by_id(ctx: Context, query_id: int) -> Dict[str, Any]: """ Get details for a specific saved query Makes a request to the /api/v1/saved_query/{id} endpoint to retrieve information about a saved SQL query. Args: query_id: ID of the saved query to retrieve Returns: A dictionary with the saved query details including SQL text and database """ return await make_api_request(ctx, "get", f"/api/v1/saved_query/{query_id}")

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