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

multi-postgres-mcp-server

by VKirill

pg_describe_table

Inspect a PostgreSQL table to return its columns, data types, constraints, and indexes using a database label and optional schema.

Instructions

Describe columns, types, constraints, and indexes of a PostgreSQL table

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>",
      "table": "<table>"
    },
    "name": "pg_describe_table"
  }
}

Input Schema

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

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?

No annotations are supplied, so the description carries the full burden; it implies a read-only metadata inspection, which is inherently safe, and it enumerates the information returned (columns, types, constraints, indexes). However, it never explicitly states that it is non-mutating or what happens when the table does not exist.

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 no filler; the enumerated facets are the most useful content and appear immediately. Nothing unnecessary is included.

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

Completeness4/5

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

For a simple three-parameter, read-only introspection tool with no output schema, the description adequately summarizes the shape of the result. It is only slightly short of complete because it omits failure behavior for nonexistent tables or schemas.

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 description coverage is 100%, with all three parameters (database, table, schema with default public) documented in the input schema. The description adds no additional meaning about identifier formats, qualified names, or case sensitivity, so the baseline 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?

"Describe columns, types, constraints, and indexes of a PostgreSQL table" gives a specific verb (describe) plus the exact resource and the facets returned, so an agent knows precisely what it gets. It does not explicitly contrast itself with siblings such as pg_list_tables or pg_query, which keeps it below a 5.

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 when-to-use statement, no prerequisite (e.g., that the database label must come from config and the table must already exist), and no named alternative for discovery vs. querying. The intent is inferable from the name alone, but the description itself supplies no routing guidance.

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