Skip to main content
Glama
eric-patton

postgres-schema-mcp

by eric-patton

Sample rows

sample_rows
Read-onlyIdempotent

Inspect a table's data shape by returning its first rows, masking secret-looking columns, and capping results with truncation notices.

Instructions

Return the first few rows of a table so you can see the shape of the data. Columns whose names look like secrets are masked. Results are capped by row count and by size, and the response says when it truncated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many rows to return. Defaults to 10, and the server cap still applies.
tableYesTable name, unqualified.
schemaYesSchema name.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior5/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the description need not restate safety. It adds substantive behavioral detail: secret-looking columns are masked, results are capped by both row count and size, and truncation is reported. This meaningfully exceeds the structured annotations.

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?

Three sentences with no fluff. The core action is front-loaded, and each subsequent sentence adds distinct value: masking behavior, cap behavior, and truncation notification. Nothing extraneous is present.

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 3-parameter tool with strong annotations, the description covers the important runtime behaviors: masking, cap limits, and truncation response. It could be slightly more explicit about the exact shape of the returned result (e.g., whether column names/types are included), but overall it is complete enough for correct invocation.

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%, and the schema already documents limit (including default, min, and max), table, and schema. The description adds no parameter-level meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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 uses a specific verb and resource: 'Return the first few rows of a table'. This clearly distinguishes sampling data from sibling tools like describe_table (structure) and run_select (arbitrary queries), and the added 'shape of the data' purpose makes intent unmistakable.

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 'so you can see the shape of the data' clause gives a clear implied context, but the description never explicitly states when to use this tool versus alternatives like run_select or describe_table. There is no when-not guidance or named sibling fallback, so the agent has to infer selection criteria.

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

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/eric-patton/postgres-schema-mcp'

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