End Engine Session
endEngineSessionCancel a running database statement or terminate its session using a session ID. Choose cancel to stop the current query or terminate to end the connection.
Instructions
Cancels the statement a session is running (mode=cancel) or ends its connection (mode=terminate, the default): pg_cancel_backend or pg_terminate_backend, KILL QUERY or KILL, killOp on MongoDB, KILL QUERY on ClickHouse. sessionId comes from streamEngineSessions.
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": {
"workspaceSlug": "<workspaceSlug>",
"appSlug": "<appSlug>",
"serviceName": "<serviceName>",
"sessionId": "<sessionId>"
},
"name": "endEngineSession"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| mode | No | terminate | |
| region | No | ||
| appSlug | Yes | ||
| sessionId | Yes | ||
| serviceName | Yes | ||
| workspaceSlug | Yes |