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]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- bin/server.js:131-136 (registration)The 'show_locks' tool is registered in the TOOLS catalog array. However, this is a static reference adapter — it does not implement tool execution locally. The actual handler for 'show_locks' lives on the hosted backend at https://data.thinair.co/mcp. This local server only returns a redirect message for all tool calls.
{ name: "show_locks", description: "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]", inputSchema: { type: "object" }, },