Skip to main content
Glama
chenz4027

postgres-mcp

by chenz4027

postgres_select

Select data from a PostgreSQL table with optional filtering, sorting, and pagination.

Instructions

Select data from a table with optional filtering, sorting, and pagination

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of rows to return
whereNoWHERE clause conditions as key-value pairs
offsetNoNumber of rows to skip
columnsNoColumns to select (leave empty for all columns)
order_byNoColumn to order by
table_nameYesName of the table to select from
order_directionNoOrder direction
Behavior3/5

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

No annotations are provided, so the description bears the full burden of behavioral disclosure. It implies a read-only operation via 'Select data' and mentions pagination, but does not explicitly state safety, permissions, or potential edge cases.

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?

The description is a single, concise sentence that front-loads the core action and summarizes optional behaviors without unnecessary verbosity.

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 simple read operation and full schema coverage, the description is adequate for understanding the tool's role. It lacks explicit return-value details and differentiation from postgres_query, but these are not critical for a basic select tool.

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?

The input schema has 100% coverage with all parameters described. The description adds a high-level summary of filtering/sorting/pagination but no new details beyond the schema, making the baseline score appropriate.

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 clearly identifies the tool as a select operation on a table, naming the key capabilities of filtering, sorting, and pagination. It differentiates from sibling write tools (insert/update/delete) but does not explicitly distinguish it from postgres_query.

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

Usage Guidelines4/5

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

The description provides clear context for when to use the tool: retrieving data with optional filtering, sorting, and pagination. However, it does not mention alternatives or state when not to use this tool in favor of postgres_query.

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/chenz4027/postgres-mcp'

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