MCP server for PostgreSQL database operations over HTTP
Three tools with clear verb-noun naming (postgresql_query, postgresql_execute, postgresql_script) and adequate descriptions (100-150 chars each). All tools have input schemas with typed parameters. However, parameter descriptions are minimal (10-20 chars), output schemas are undocumented, and error handling lacks recovery guidance. Missing tool annotations (readOnlyHint, destructiveHint). No pagination support despite potential for large result sets. Descriptions state WHAT but not WHEN or WHY to use each tool.
Execute a SQL statement that modifies data (INSERT/UPDATE/DELETE) or DDL (CREATE/DROP/ALTER). Write operations require confirm: true.
Execute a SQL SELECT query and return results as JSON. Read-only, only supports SELECT statements. For data modification, use postgresql_execute.
Execute a SQL script with multiple statements separated by semicolons. Write operations require auto_execute: true.
Parameter descriptions are too brief (10-20 chars). 'Optional query parameters' and 'SQL statement to execute' lack format/constraint guidance. LLMs cannot infer valid values or expected structure.
Output schemas are not documented. Tools return wrapped JSON responses but LLMs cannot see the structure of 'results' field or what fields are present in returned records. Breaks downstream tool chaining.
No tool annotations. postgresql_query should have readOnlyHint=true; postgresql_execute and postgresql_script should have destructiveHint=true. Agents cannot distinguish safe from unsafe operations without explicit hints.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | <=2025-11-25 | v2 |
Error responses lack recovery guidance. Code returns _wrap_error() with raw messages but does not suggest next steps (e.g., 'Try postgresql_query() for SELECT-only operations'). Agents cannot self-correct.
No pagination support. postgresql_query can return unlimited rows, risking context window exhaustion. No limit, offset, or cursor parameters documented.