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
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | Yes |
Implementation Reference
- main.py:1395-1411 (handler)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}