Skip to main content
Glama
MadlyFriese

pg-readonly-mcp

by MadlyFriese

describe_table

Describe a PostgreSQL table's structure including columns, data types, nullability, primary key, foreign keys, and indexes. Input schema and table name to get details.

Instructions

Describe a table: columns, types, nullability, primary key, FKs, indexes.

Columns come back flat as column_names (the field labels) and column_rows (one positional row per column), in ordinal position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
schemaYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses how columns are returned ('flat as `column_names` and `column_rows` in ordinal position'), which adds some behavioral context, but it lacks details about side effects (likely none) or potential errors.

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

Conciseness4/5

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

The description is concise with two clear parts: what the tool describes and how the output is structured. There is no wasted language, though the output details could be more succinct.

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?

Given the tool has an output schema (not shown) and two simple string parameters, the description adequately covers the purpose. It mentions key output elements but does not fully detail how foreign keys or indexes appear, which is acceptable since the output schema presumably covers that.

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?

The input schema has 0% schema description coverage, and the description does not add meaning beyond the parameter names 'schema' and 'table'. While the names are self-explanatory, the description fails to provide any additional constraints, formats, or examples to compensate for the lack of schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly specifies the tool's function: 'Describe a table: columns, types, nullability, primary key, FKs, indexes.' This is a specific verb-resource pair that distinguishes it from siblings like list_schemas, list_tables, sample_table, and run_query.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies using the tool to get table schema details but does not explicitly state when to use it versus alternatives like sample_table or run_query. There is no guidance on prerequisites or when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MadlyFriese/pg-readonly-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server