Skip to main content
Glama
mcp-server-postgres

mcp-server-postgres

by Ismail-2001

describe_table

Retrieve detailed column, index, and foreign key definitions for a PostgreSQL table to understand its schema and relationships.

Instructions

Returns detailed column, index, and foreign key definitions.

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

Input Schema

NameRequiredDescriptionDefault
tableYes
schemaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It partially discharges this by disclosing the categories of information returned, which implies a read-only metadata lookup, but says nothing about behavior for a missing or ambiguous table, permission requirements, or whether views and system objects are covered.

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, hedging, or repetition. Nothing in it could be removed without losing content.

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 output schema this is minimally adequate: the returned content is enumerated, so an output schema is less necessary. However, the unspecified optional 'schema' parameter and the absence of any error or scope behavior leave real gaps.

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 description coverage is 0%, so the description must compensate and does not: it never mentions the required 'table' argument or the optional 'schema' argument. A reader cannot tell whether 'schema' is a database namespace qualifier or a filter, which is a meaningful ambiguity for this tool.

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 (returns) and the resource contents it delivers (column, index, and foreign key definitions), so an agent can tell this is a table-structure introspection tool. It does not explicitly differentiate from siblings such as schema_inspect or list_tables, keeping 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 guidance, no exclusions, and no mention of alternatives like schema_inspect, list_tables, or explain. The agent must infer the use case entirely from the one-sentence purpose.

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