Skip to content

cancel_sql

MCP tools › Databases

Cancel the run_sql call that is running on a connection: PostgreSQL's cancel request, MySQL/MariaDB KILL QUERY, SQLite interrupt. Returns cancelled false when nothing runs there; the running call then returns the database's error for the cancelled statement. Needs one permission of the connection.

Capabilitydatabase.cancel_sql
AreaDatabases
Accesschanges processes
Reachesdatabase, network
Rightsssh, database-permission, trusted-project
Dry runnone

Arguments

ArgumentTypeDescription
connectionrequiredstringConnection name from list_connections.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project cancel_sql '{"connection":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"connection"
],
"properties": {
"connection": {
"description": "Connection name from `list_connections`.",
"type": "string"
}
}
}