An MCP server that provides tools to execute SELECT queries against Oracle Database, with security restrictions and AI integration support
Single tool (execute_select_query) with moderate schema definition but significant gaps in description quality, parameter documentation, and security guidance. The tool has a basic description (127 chars, within baseline range) and visible input schema with types, but parameter descriptions are sparse or missing, error handling is implicit rather than explicit, and the tool lacks guidance on what errors to expect or how to recover. The server implements server-side query validation (dangerous keywords, safe query types) which is good, but does not expose this validation logic or error categories to the LLM, limiting its ability to self-correct. No tool annotations (readOnlyHint, idempotentHint) despite being a READ_ONLY operation.
Execute a SELECT query against Oracle Database with optional parameters and row limiting
Tool lacks explicit error recovery guidance. The server validates queries (blocks dangerous keywords, multiple statements, INTO clauses, UNION ALL) but does not return actionable error messages that guide the LLM to correct input. Example: when UNION ALL is detected, the server raises ValueError with a long guidance message, but this is not documented in the tool description or schema.
Parameter descriptions are incomplete or missing detail. 'params' is described as 'Optional bind parameters for the query (dictionary of parameter names to values)' but does not explain: What characters are allowed in parameter names? What types of values are accepted? What length limits apply? The code validates parameter names against regex '^[a-zA-Z_][a-zA-Z0-9_]*$' and string values to max 4000 chars, but LLMs cannot see this constraint and will not know to avoid invalid parameter names.
No tool annotation for READ_ONLY operation. The tool is marked risk='READ_ONLY' in metadata but does not declare readOnlyHint in the tool definition, which is necessary for MCP spec compliance and helps LLMs understand the tool cannot cause mutations.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 41 | 2026-07-28+ | v2 |
Output schema is not formally documented. The tool returns JSON-formatted results via format_results(), but the tool definition does not declare the output schema (e.g., an array of objects with dynamic keys matching column names, or an error object with 'message' field). LLMs cannot plan downstream calls without knowing the structure of the response.
Parameter naming ambiguity: 'max_rows' and 'max_length' serve different purposes (row count limit vs character count limit) but their names do not make the distinction obvious. An LLM might conflate them. Better names: 'row_limit' + 'result_char_limit' or clearer descriptions stating units and what they cap.
Query validation logic is opaque to the LLM. The tool blocks UNION ALL, multiple statements, INTO clauses, and dangerous keywords, but these constraints are not documented in the tool description or parameter descriptions. An LLM will not know why a query fails until it tries it, wasting a round-trip.
No indication of when to use this tool vs. other query execution patterns. The description says 'Execute a SELECT query against Oracle Database with optional parameters and row limiting' but does not explain: When should I call this vs. other analysis tools? What kinds of queries does it handle best? This omission makes tool selection harder when multiple query tools are available.