Heroku MCP server

Official

pg_locks

Analyze and resolve database locks and blocking transactions. Identify blocked queries, investigate deadlocks, monitor lock states, and improve performance by diagnosing concurrency issues.

Instructions

Analyze database locks and blocking transactions. Use this tool when you need to: 1) Identify blocked queries and lock chains, 2) Investigate deadlock situations, 3) Monitor transaction lock states, 4) Resolve blocking issues affecting performance. The tool helps diagnose and resolve database concurrency problems.

Input Schema

NameRequiredDescriptionDefault
appYesThe name of the Heroku app whose database locks to view.
databaseNoConfig var containing the connection string, unique name, ID, or alias of the database. To access another app's database, prepend the app name to the config var or alias with `APP_NAME::`. If omitted, DATABASE_URL is used.
truncateNoWhen true, truncates queries to 40 characters.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "app": { "description": "The name of the Heroku app whose database locks to view.", "type": "string" }, "database": { "description": "Config var containing the connection string, unique name, ID, or alias of the database. To access another app's database, prepend the app name to the config var or alias with `APP_NAME::`. If omitted, DATABASE_URL is used.", "type": "string" }, "truncate": { "description": "When true, truncates queries to 40 characters.", "type": "boolean" } }, "required": [ "app" ], "type": "object" }
ID: c1gtn2x5d2