A Model Context Protocol server for executing queries and managing PostgreSQL databases with resilience features including connection pooling, retry logic, and health checks.
Four tools with basic schemas and descriptions, but significant gaps in parameter documentation, output schema clarity, and error handling guidance. Tool names are action-oriented (ExecuteQuery, ExecuteNonQuery, TestConnection, ListAvailableDatabases) but descriptions lack context on when to use each tool vs. alternatives. Parameters like 'sql' and 'database' have descriptions, but no validation constraints (e.g., SQL injection warnings, database name format). Output schemas are not documented, LLMs cannot predict what ExecuteQuery returns (column names? types? row count?). Error handling is absent: no guidance on transient vs. fatal errors, no recovery suggestions. Security concerns: SQL parameters accept raw strings with no sanitization hints. Composition is reasonable (four distinct operations), but tools lack idempotency markers and confirmation patterns for destructive operations (ExecuteNonQuery).
Execute an INSERT, UPDATE, or DELETE query against the PostgreSQL database
Execute a SELECT query against the PostgreSQL database and return results as JSON
List all available PostgreSQL databases configured in the connection strings
Test the connection to a PostgreSQL database and return connection details and resilience settings
Output schemas not documented. ExecuteQuery and ExecuteNonQuery do not specify what fields are returned (column names, types, row count, affected rows). LLMs cannot plan downstream operations or extract data reliably.
No input validation or SQL injection warnings. 'sql' parameter accepts raw strings with no sanitization guidance. Tool description does not warn LLMs about injection risks or require parameterized queries.
No error handling guidance. Errors are not categorized as retryable, user-fixable, or fatal. No recovery suggestions (e.g., 'Connection timeout, retry with exponential backoff' or 'Invalid SQL, check syntax').
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 48 | 2026-07-28+ | v2 |
ExecuteNonQuery lacks confirmation or dry-run pattern. Destructive operations (INSERT, UPDATE, DELETE) should support a confirmation step to prevent accidental data loss.
Tool descriptions are generic and lack context on when to use each tool. 'Execute a SELECT query' does not explain when to call ExecuteQuery vs. TestConnection, or what the LLM should do with results.