MCP server for WordPress database access via JDBC, providing tools to query tables, retrieve columns, and execute SQL statements
This WordPress MCP server provides three SQL-oriented tools with good naming conventions (verb_noun pattern: get_tables, get_columns, run_query) and descriptive names that clearly signal their function. All three tools have non-empty descriptions that explain purpose and usage. However, there are significant gaps in schema documentation and parameter descriptions that prevent a higher score. The tools follow a discovery-then-query pattern (get_tables → get_columns → run_query) which is sound composition. Parameter schemas are present but lack depth, descriptions exist but are minimal (typically 15-25 chars). Output formats are mentioned (CSV) but return schemas are not formally documented. Error handling exists at the Java level but error recovery guidance is absent from descriptions. No parameter validation constraints (enums, ranges, patterns) are visible. The server treats parameters as simple string types without validation examples.
Retrieves a list of fields, dimensions, or measures (as columns) for an object, entity or collection (table). Use the `wp_get_tables` tool to get a list of available tables. The output of the tool will be returned in CSV format, with the first line containing column headers.
Retrieves a list of objects, entities, collections, etc. (as tables) available in the data source. Use the `wp_get_columns` tool to list available columns on a table. Both `catalog` and `schema` are optional parameters. The output of the tool will be returned in CSV format, with the first line containing column headers.
Execute a SQL SELECT statement.
Return schemas not documented. Tools return CSV-formatted text but LLMs cannot see what fields are in the output, what their types are, or how to chain results to other tools. This violates the pattern:tool-description requirement that outputs must be documented so agents can plan downstream calls.
Parameter descriptions are minimal and lack actionable detail. 'The catalog name' (13 chars) and 'The schema name' (14 chars) do not explain what values are valid, whether they are required, or what happens if omitted. This violates pattern:tool-description baseline of 72 chars average.
No input validation constraints visible. Parameters are untyped strings with no enum, regex pattern, length limit, or range. The 'sql' parameter in wp_run_query accepts arbitrary text, no documentation of dialect restrictions (SQL-92), supported clauses (FROM, JOIN, GROUP BY, ORDER BY, LIMIT/OFFSET), or quoting rules. LLMs will hallucinate invalid SQL.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 50 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 37 | - | v1 |
No error recovery guidance. Descriptions do not explain what to do if a query fails, how to interpret CSV parsing errors, or how to diagnose invalid SQL. Pattern:recovery-guide requires error responses tell the LLM what to do next.
No pagination or result limiting documented. Tools may return unbounded result sets that blow context windows. Pattern:paginated-result requires list tools accept limit/offset and return total count or cursor.
SQL parameter description includes example clauses (FROM, INNER JOIN, etc.) but does not use formal constraints. Should replace 'Valid clauses: FROM, INNER JOIN, ...' with an enum or pattern validation so LLMs understand these are the ONLY allowed clauses, not suggestions.