Skip to main content
Glama

blocking_lock_chain_rca

Build a wait-for tree from blocking lock pairs to identify the root blocker in PostgreSQL, using live or provided data.

Instructions

[READ] Build the wait-for tree from blocking pairs and name the root blocker.

Pass 'pairs' (as from the live blocking-pairs read) for pure/offline analysis,
or omit to pull the current blocking graph live.

Args:
    pairs: Injected blocking pairs {blockedPid, blockingPid, ...}; if omitted,
        pulled live from pg_blocking_pids.
    target: Target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairsNo
targetNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description starts with '[READ]', indicating idempotent/safe behavior. It explains both data sources (injected pairs or live pull) and the action (building tree, naming root blocker). No side effects are implied, and the safety profile is clear despite no annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is highly concise and well-structured: a one-line summary followed by parameter-specific guidance. Every sentence adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description lacks information about the output format. It says the tool builds a tree and names the root blocker, but does not describe the return value structure, which is essential for the agent to use the result. No output schema exists to compensate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description adds meaningful details: 'pairs' are blocking pairs with {blockedPid, blockingPid} format, and 'target' is a config name. It explains their defaults and behaviors, which is crucial for correct usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool builds a wait-for tree from blocking pairs and identifies the root blocker. It distinguishes itself from siblings like list_locks and slow_query_rca by focusing on chain analysis and root cause identification.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to pass 'pairs' (for offline analysis) versus omit them (for live analysis). However, it does not explicitly compare to sibling tools or state when not to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Postgres-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server