Skip to main content
Glama
mcp-server-postgres

mcp-server-postgres

by Ismail-2001

schema_inspect

Inspect PostgreSQL table schemas to resolve exact column names, data types, nullability, and constraints before writing or validating SQL queries.

Instructions

Resolve exact table names, column names, types, nullability, and constraints.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "schema_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNo
schemaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does not meet it. It implies a read-only lookup but never states that, and it does not say how the two optional parameters behave (for example, whether omitting them returns everything) or what the result looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The one-sentence form is compact and front-loaded with no wasted words, but the brevity tips into under-specification given the tool's zero annotation and zero schema coverage. It is efficient rather than complete.

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

Completeness2/5

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

With no annotations, no output schema, and undocumented parameters, the definition is too thin to guide correct invocation. It should at minimum explain scope (single table versus whole schema) and confirm it is a safe read operation.

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% for both the table and schema parameters, and the description never explains what they do, what format they take, or what happens when they are omitted. The words "table" and "schema" appear only as objects of resolution, so no real semantics are added beyond the schema.

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 pairs the verb "Resolve" with a concrete list of resources (table names, column names, types, nullability, constraints), making it clear this is a schema-introspection tool rather than a query or DDL tool. It does not differentiate itself from the sibling describe_table, which likely overlaps, leaving some ambiguity for selection.

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 statement of when to use this tool versus alternatives such as describe_table, list_tables, or query. The agent must infer that this is the metadata-lookup option from the description alone.

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