Skip to main content
Glama
dbadmin-mcp

dbadmin-mcp

by legavaz

locks

Identifies current blocking sessions by listing waiting and blocking process IDs, wait type, duration, and related queries to diagnose database contention.

Instructions

Кто кого блокирует прямо сейчас: ожидающий и блокирующий pid, тип ожидания, длительность, запросы.

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": "locks"
  }
}

Input Schema

NameRequiredDescriptionDefault
connectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the content of the result (blocking/waiting pids, wait type, duration, queries), which signals a read-only observational tool, but says nothing about cost, result volume, permissions, or whether a connection target is needed.

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

Conciseness4/5

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

One dense, front-loaded sentence enumerating exactly the fields returned. Nothing is wasted, though the list-like phrasing lacks any structural separation between purpose and output.

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

Completeness3/5

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

For a simple read-only diagnostic with one optional parameter and no output schema, describing the returned fields is a reasonable minimum. The missing piece is what the connection parameter selects, which is the one thing the schema cannot supply.

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

Parameters2/5

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

There is one parameter, connection, with 0% schema description coverage, and the description never mentions it or explains which connection/database to inspect. A single undocumented parameter on a diagnostic tool leaves real ambiguity for an agent.

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

Purpose4/5

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

States a concrete verb-plus-resource: it shows who blocks whom right now, listing waiting and blocking pids, wait type, duration and queries. That is clearly distinguishable from a bare name like 'locks', though it never contrasts itself with siblings such as posting_bottlenecks or slow_queries.

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

Usage Guidelines2/5

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

The phrase 'прямо сейчас' implies a real-time diagnostic use, but there is no explicit when-to-use instruction, no mention of when another tool would be better, and no prerequisites or exclusions stated.

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