Skip to main content
Glama
dbadmin-mcp

dbadmin-mcp

by legavaz

top_tables

Find large database tables and inspect their size, rows, indexes, scans, and statistics; use fast estimates on big databases or exact sizing for precise results.

Instructions

Самые большие таблицы: размер, данные, индексы, число индексов, строк, seq/index scans, есть ли статистика. На больших базах — быстрый режим с оценкой; exact=true для точного обхода.

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

Input Schema

NameRequiredDescriptionDefault
exactNoточный размер через pg_total_relation_size (медленно на 10k+ таблиц)
limitNoсколько строк вернуть (по умолчанию 20)
schemaNoограничить схемой (PostgreSQL)
refreshNoигнорировать кэш 15 минут
connectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does disclose the key behavioral tradeoff — approximate results by default on big databases versus accurate but slow traversal with exact=true — but says nothing about read-only nature, permissions, result ordering, or cost/rate considerations beyond the exact flag.

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?

Two tight sentences: the output contents are front-loaded as a compact list, followed by the fast/exact mode distinction. There is no filler, though the terse phrasing assumes the reader understands terms like 'оценка' without elaboration.

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?

Because there is no output schema, listing the returned columns is valuable, and the exact-mode caveat is the most important behavioral detail for a 5-parameter tool. However, with zero annotations and no explanation of the connection parameter or the 15-minute cache refresh semantics, the definition leaves gaps an agent would want filled.

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

Parameters3/5

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

Schema coverage is already 80%, so the schema documents exact, limit, schema, and refresh quite well; the description only restates the exact-mode tradeoff already in the schema. The connection parameter remains unexplained in both places, and limit/schema/refresh defaults get no added meaning from the description.

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?

The description gives a concrete verb and resource — retrieving the largest tables — and enumerates exactly what columns come back (size, data, indexes, index count, rows, seq/index scans, statistics presence). An agent can tell this is a size-ranking table-inspection tool, though it never differentiates itself from close siblings like top_indexes or table_profile.

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

Usage Guidelines3/5

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

Usage is only implied: it explains that large databases get an estimation-based fast mode and that exact=true forces a full accurate traversal. There is no statement of when to prefer this tool over table_profile or top_indexes, and no note about prerequisites, so the agent must infer relevance from the name and sibling list.

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