kill_query
Cancel a session's running SQL statement on MySQL/MariaDB while keeping the connection alive; preview with dry_run to abort long or blocking queries.
Instructions
[WRITE][risk=high] Cancel a session's running statement (KILL QUERY). No inverse.
The session stays connected; only its current statement is aborted. Captures the session's user/host/query for audit. Pass dry_run=True to preview.
Refuses this tool's own session id — the statement it would cancel is this very call. Enforced under dry_run too.
Args: session_id: Session/connection id (from list_sessions). dry_run: If True, preview without cancelling. target: Target name from config; omit for the default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "kill_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| session_id | Yes |