control-sessions
Installation
SKILL.md
Control Sessions
Manage and control active database sessions including terminating runaway queries, resolving blocking situations, and handling problematic sessions to maintain system health.
Instructions
When to Use This Skill
- Runaway query consuming excessive resources
- Session is blocking critical work
- User requests to kill their own stuck session
- Emergency situation requires immediate session termination
- Unresponsive or hung sessions need cleanup
Available MCP Tools
show_sessions- View all active sessionsshow_sql- Review SQL for specific sessionterminate_session- Kill a specific sessiondetect_blocking- Identify blocking sessionsshow_top_consumers- Find resource-heavy sessions