Skip to main content
Glama
Teja-sudo

postgres-mcp-server

by Teja-sudo

mutation_preview

Preview INSERT, UPDATE, or DELETE effects without executing. Shows estimated rows affected and sample rows to verify impact before running destructive queries.

Instructions

Preview the effect of INSERT/UPDATE/DELETE without executing. Shows estimated rows affected and sample of rows that would be modified. Use this before running destructive queries to verify the impact. Optionally use server/database/schema params for one-time execution on a different server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesThe INSERT, UPDATE, or DELETE statement to preview
sampleSizeNoNumber of sample rows to show (default: 5, max: 20)
serverNoOne-time server override. Execute on this server without changing main connection.
databaseNoOne-time database override. Uses this database for execution.
schemaNoOne-time schema override. Sets search_path for this execution only.
Behavior4/5

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

No annotations present, but the description clearly states the tool is non-executing, shows estimates and samples, and mentions parameter limits (sampleSize max 20). Does not detail error handling but adequate for a preview tool.

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 concise sentences that front-load purpose, then provide usage guidance and parameter hints. No fluff or repetition.

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?

All five parameters are covered by schema and description. Output behavior (estimated rows and samples) is described. Lacks description of error cases, but tool complexity is low and no output schema is expected.

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%, so baseline 3. The description adds minor reinforcement for optional overrides, but no significant extra meaning beyond the schema.

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?

Clearly states 'preview the effect of INSERT/UPDATE/DELETE without executing' with specific verb and resource, and distinguishes from siblings like execute_sql which actually run queries.

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?

Explicitly advises using this 'before running destructive queries to verify the impact', and describes optional server/database/schema overrides. Lacks explicit 'when not to use' but context implies distinction from actual execution.

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/Teja-sudo/postgres-mcp-server'

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