Skip to main content
Glama
postgres-readonly-mcp

postgres-readonly-mcp

by lmartin712

describe_table

Describe columns of an allow-listed table to inspect its schema structure. Accepts 'table' or 'schema.table' names, helping you verify fields before writing read-only SELECT queries.

Instructions

Describe the columns of an allow-listed table. Accepts 'table' or 'schema.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": {
      "name": "<name>"
    },
    "name": "describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 a real behavioral constraint — only allow-listed tables are accepted — and it clarifies accepted name formats, but it says nothing about what happens for a non-allow-listed or nonexistent table (error vs empty result) or whether the operation is read-only. That is useful but incomplete disclosure for a zero-annotation tool.

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?

Two short sentences with zero filler; the purpose comes first and the accepted input format follows immediately. Nothing is repeated from the name or title and nothing could be cut without losing information.

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 one-parameter read tool with an output schema (so return values need no explanation), the description covers purpose, eligibility, and input format adequately. The only meaningful gap is error/failure behavior for disallowed or missing tables, which is minor given the tool's simplicity.

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

Parameters4/5

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

Schema coverage is 0% and the single parameter is ambiguously named 'name', so the description does the necessary work by specifying that it accepts either 'table' or 'schema.table'. That is exactly the disambiguation an agent needs. A small mismatch remains: the description calls the argument 'table' while the schema calls it 'name', which could briefly confuse a caller.

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 names a specific verb and resource: 'Describe the columns of an allow-listed table', which tells an agent this returns column metadata rather than rows (query) or table names (list_tables). It is clear on its own, but it never explicitly contrasts itself with the two siblings, so it lands just short of 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 explicit when-to-use or when-not-to-use guidance and no named alternative. An agent can infer that this is the schema-inspection step before querying, but that inference is entirely on the caller; the description only supplies an eligibility constraint ('allow-listed'), not selection guidance.

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

Deploy Server

Other Tools