show_locks
List active database sessions and identify blocking locks using system views for PostgreSQL, MySQL, and SQL Server.
Instructions
List active sessions + blocking locks. Uses the dialect's own system view: pg_stat_activity on postgres, information_schema.processlist on mysql, sys.dm_exec_requests joined with sys.dm_tran_locks on mssql. [BUILD tier]
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "show_locks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||