cancel_query
Cancel a running database statement by backend PID and database while keeping the session alive; returns cancelled=false if the PID is missing or permissions are insufficient.
Instructions
Cancel the statement running in server backend pid (find pids via show_activity).
Cancels the statement only — the session survives. cancelled=false means the pid doesn't exist or you lack permission (same database user required).
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": {
"database": "<database>",
"pid": "<pid>"
},
"name": "cancel_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| database | Yes |