Skip to main content
Glama
yanxxcloud

PostgreSQL MCP Server (Read-Write)

by yanxxcloud

execute

Run any SQL statement, including queries, DML, and DDL, to perform CRUD and schema changes on PostgreSQL databases.

Instructions

执行任意 SQL 语句(查询、DML 或 DDL)。这是一个通用工具,可以执行任何 SQL 操作。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes要执行的 SQL 语句
Behavior3/5

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

The description discloses that the tool can perform DML and DDL, which implies potential data modifications and schema changes. Since no annotations are provided, this is useful context, but it does not elaborate on side effects, permissions, or error behavior.

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 short and front-loaded, but slightly redundant ('any SQL statement' and 'any SQL operation' repeat the same idea). It is still efficient and easy to scan.

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?

Given that this is a generic executor with no output schema and no annotations, the description should clarify expected return values, potential dangers (e.g., destructive DDL), and when it should be preferred over specific sibling tools. It does none of these, leaving significant gaps for safe and correct use.

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 coverage is 100% for the single 'sql' parameter, so the schema already documents it fully. The description adds no additional parameter-level meaning beyond restating that it executes SQL, keeping the score at the baseline.

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 states the tool executes any SQL statement (query, DML, DDL), identifying the verb (execute) and resource (SQL). It distinguishes from siblings by being the generic catch-all, though it does not explicitly name alternatives.

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 usage as a universal fallback for any SQL operation, but it does not explicitly state when to use this tool over the more specific siblings like query, insert, update, or delete. It lacks clear when/when-not guidance.

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/yanxxcloud/mcp-server-postgresql-rw'

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