Skip to main content
Glama
dbadmin-mcp

dbadmin-mcp

by legavaz

table_profile

Profiles a PostgreSQL or SQL Server table to report size, row estimates, indexes, columns, vacuum/analyze status, scans, and foreign keys for performance and schema analysis.

Instructions

Профиль таблицы: размер, оценки строк, индексы, колонки, vacuum/analyze, seq/index scans, внешние ключи.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table": "<table>"
    },
    "name": "table_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesschema.table или table
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 bears the full burden. The list of read-only statistics implies an informational, non-destructive operation, which is useful, but it never states read-only status, permissions, cost, or performance impact.

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?

A single dense sentence that front-loads the resource and packs the return contents into a compact list. No wasted words, though it is terse to the point of being just a noun enumeration.

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?

With no output schema, the enumerated contents usefully preview what is returned. However, the undefined connection parameter, absent usage guidance, and missing read-only/permission context leave gaps for a diagnostic tool.

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?

Schema coverage is only 50%: the 'table' parameter is described (schema.table or table) but 'connection' is not. The description adds no parameter meaning at all, leaving connection selection entirely to the schema and inference.

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?

Names a specific resource (table) and enumerates exactly what the profile contains — size, row estimates, indexes, columns, vacuum/analyze, scan stats, foreign keys. This clearly distinguishes it from database-level siblings like db_overview and from top_tables, though the read verb is only implied.

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?

Gives no guidance on when to use this versus alternatives such as db_overview, top_tables, or top_indexes, and states no prerequisites or exclusions. The agent must infer the use case from the enumerated contents alone.

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