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
| Name | Required | Description | Default |
|---|---|---|---|
| query_id | Yes |
Implementation Reference
- main.py:1347-1364 (handler)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}")