Skip to main content
Glama
multi-postgres-mcp-server

multi-postgres-mcp-server

by VKirill

pg_list_tables

List PostgreSQL tables with estimated row counts to inspect database structure and assess table sizes. Specify a configured database label and optional schema to target the right data.

Instructions

List tables in a PostgreSQL database with estimated row counts

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": {
      "database": "<database>"
    },
    "name": "pg_list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemaNoSchema name (default: public)public
databaseYesDatabase label from config

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 behavioral burden. It does disclose one meaningful trait — row counts are estimates, not exact — but says nothing about cost, permissions, whether views/system schemas are included, or behavior when the database label is invalid.

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?

A single front-loaded sentence with zero filler; the resource comes first and the useful qualifier about row counts follows immediately. Nothing redundant is present.

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 two-parameter read tool with no annotations and no output schema, the definition is minimally adequate. It leaves open what the result rows contain (table name only, or name plus estimate), whether views or system schemas appear, and whether the operation is safe/cheap.

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 100%, with both `database` and `schema` (including its 'public' default) documented in the input schema. The description adds no meaning beyond that, such as what a valid database label looks like or how schema scoping affects results, so the baseline of 3 applies.

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 specific verb and resource ('List tables in a PostgreSQL database') and adds scope detail ('estimated row counts'), which is enough to distinguish it from pg_list_databases and pg_list_schemas by resource alone. It stops short of naming siblings or contrasting with pg_describe_table, so it is clear but not fully differentiated.

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?

There is no explicit when-to-use or when-not-to-use guidance. An agent can infer this is a discovery step before pg_describe_table or pg_query, but the description never says so, nor does it mention any alternative for column-level detail or exact counts.

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