show_activity
Inspect current database server activity—PID, state, wait events, and query/transaction age—to identify what is holding connections; sanitized by default and pairs with cancel_query.
Instructions
Show current server activity: pid, state, wait events, query/transaction age.
Sanitized by default — no user names, client addresses, or query text (pass include_query=true for truncated query text). Answers "what is holding connections"; pair with cancel_query(pid) to kill a stuck statement.
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>"
},
"name": "show_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | ||
| include_query | No |