json2sql has 3 tools with mixed quality. The 'convert' tool has a well-structured schema with 6 parameters, all typed and described, covering a realistic use case (JSON→SQL conversion). However, 'mcp' and 'version' are meta-tools with empty or trivial schemas and descriptions that don't explain their purpose in an MCP context. Tool descriptions are adequate (50-150 chars) but lack actionable guidance on when to use each tool or what happens on error. No output schemas are documented. Parameter descriptions are present but generic (e.g., 'SQL dialect: postgres, mysql, sqlite' lacks format constraints). The 'convert' tool accepts file paths and stdin, which is good for flexibility, but error handling is minimal, no guidance on malformed JSON, unsupported dialects, or file I/O failures. Overall, the server prioritizes CLI usability over LLM-agent clarity.
Convert a JSON file to SQL INSERT statements.
Run as an MCP (Model Context Protocol) server over stdio. AI coding agents (Claude Code, Cursor, etc.) use this to interact with json2sql tools directly.
Show version.
Tools 'mcp' and 'version' have empty input schemas and trivial descriptions. 'mcp' is a meta-command (runs the server itself) and should not be exposed as a tool to agents. 'version' lacks context on why an agent would call it.
No output schema documented for 'convert'. Agents cannot predict the structure of SQL output (is it a string? an array of statements? a file path?). This breaks downstream tool chaining.
Parameter 'dialect' accepts free-form strings with no enum constraint. Description says 'postgres, mysql, sqlite' but LLMs may hallucinate 'mariadb', 'oracle', etc. Should be an enum.
No error recovery guidance. If JSON is malformed, dialect is invalid, or file is unreadable, the tool fails silently. Descriptions should state: 'On error, returns a message explaining the issue (e.g., invalid JSON, unsupported dialect).'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 42 | 2026-07-28+ | v2 |
Parameter 'table' defaults to 'data' with no validation. If an agent passes a reserved SQL keyword (e.g., 'select', 'from'), the tool will generate invalid SQL. Should validate and reject reserved words.