Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_query_stop

Stop a running query in Apache Superset by providing the client ID to terminate execution and free resources.

Instructions

Stop a running query

Makes a request to the /api/v1/query/stop endpoint to terminate a query that is currently running.

Args: client_id: Client ID of the query to stop

Returns: A dictionary with confirmation of query termination

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_idYes

Implementation Reference

  • This is the main handler function for the 'superset_query_stop' tool. It is decorated with @mcp.tool() for registration, @requires_auth to ensure authentication, and @handle_api_errors for error handling. The function takes a client_id, constructs a payload, and makes a POST request to Superset's /api/v1/query/stop endpoint via the make_api_request helper to stop the specified query.
    @mcp.tool() @requires_auth @handle_api_errors async def superset_query_stop(ctx: Context, client_id: str) -> Dict[str, Any]: """ Stop a running query Makes a request to the /api/v1/query/stop endpoint to terminate a query that is currently running. Args: client_id: Client ID of the query to stop Returns: A dictionary with confirmation of query termination """ payload = {"client_id": client_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