{"protocolVersion":"0.3.0","name":"FMF SQL Check","description":"Check SQL before you run it: syntax validation with the real PostgreSQL 18 parser and the real SQLite engine (MySQL / MariaDB via node-sql-parser, measured against real MySQL 8.4 and MariaDB 11.8 servers), with the exact error position; 18 lint rules that catch real bugs (UPDATE/DELETE without WHERE, = NULL, NOT IN with NULLs, LIMIT without ORDER BY, comma joins, injection tautologies, non-sargable filters, destructive DDL); and a formatter for 19 dialects that refuses to return output unless it provably means the same query (same PostgreSQL parse tree, same tokens). The SQL is never executed. Docs: https://sql-check.fmf-x402.workers.dev/docs — copy-paste examples for the mppx CLI, curl, the TypeScript SDK (mppx) and the Python SDK (pympp), plus an MCP config. Machine-readable: https://sql-check.fmf-x402.workers.dev/llms.txt and https://sql-check.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://sql-check.fmf-x402.workers.dev/mcp. Fleet of sister services: https://mpp-docs.fmf-x402.workers.dev, https://mpp-agent-data.fmf-x402.workers.dev, https://mpp-tools.fmf-x402.workers.dev, https://mpp-ai.fmf-x402.workers.dev, https://mpp-browser.fmf-x402.workers.dev, https://mpp-research.fmf-x402.workers.dev, https://mpp-chain.fmf-x402.workers.dev, https://mpp-stt.fmf-x402.workers.dev, https://mpp-compat.fmf-x402.workers.dev, https://mpp-domain.fmf-x402.workers.dev, https://mpp-utils.fmf-x402.workers.dev, https://mtg-sim.fmf-x402.workers.dev, https://controlplane-x402.fmfRelated: FMF Recipes — which paid API to call for any agent task. https://agent-recipes.fmf-x402.workers.dev/mpp/recipes/find ($0.003, empty call works) · MCP https://agent-recipes.fmf-x402.workers.dev/mcp · https://agent-recipes.fmf-x402.workers.dev/llms.txt\nAlso: FMF Tools Etsy Movers — today's top 20 Etsy shops by sales acceleration. https://etsy-movers.fmf-x402.workers.dev/etsy/movers/today ($0.01, no input) · MCP https://etsy-movers.fmf-x402.workers.dev/mcp · https://etsy-movers.fmf-x402.workers.dev/llms.txt","url":"https://sql-check.fmf-x402.workers.dev","preferredTransport":"HTTP+JSON","version":"1.0.0","provider":{"organization":"FMF Tools","url":"https://sql-check.fmf-x402.workers.dev/"},"documentationUrl":"https://sql-check.fmf-x402.workers.dev/docs","capabilities":{"streaming":false,"pushNotifications":false},"defaultInputModes":["application/json"],"defaultOutputModes":["application/json"],"additionalInterfaces":[{"url":"https://sql-check.fmf-x402.workers.dev/mcp","transport":"MCP-streamable-http"},{"url":"https://sql-check.fmf-x402.workers.dev/openapi.json","transport":"HTTP+JSON"}],"skills":[{"id":"_v1_sql_validate","name":"Validate SQL syntax (real PostgreSQL / SQLite parsers)","description":"Is this SQL syntactically valid? PostgreSQL is checked by the PostgreSQL 18 parser itself (libpg_query) and SQLite by the SQLite engine, so the answer matches the database; MySQL and MariaDB use node-sql-parser (agreement with real MySQL 8.4 / MariaDB 11.8 servers is published). Returns valid, statement count and types, or the error message with position, line, column and the text near it. Unknown POST https://sql-check.fmf-x402.workers.dev/v1/sql/validate ($0.001 per call via x402 on Base or MPP on Tempo)","tags":["paid","fmf-tools"]},{"id":"_v1_sql_lint","name":"Lint SQL for bugs, safety and performance","description":"Find real problems before a query runs: UPDATE / DELETE without WHERE, = NULL comparisons, NOT IN (subquery) NULL trap, LIMIT without ORDER BY, comma (cartesian) joins, INSERT without a column list, always-true injection signatures (OR 1=1), stacked statements, destructive DDL, non-sargable filters (LOWER(col) = ...), leading-wildcard LIKE, large OFFSET, ORDER BY ordinals, UNION vs UNION ALL, SELE POST https://sql-check.fmf-x402.workers.dev/v1/sql/lint ($0.002 per call via x402 on Base or MPP on Tempo)","tags":["paid","fmf-tools"]},{"id":"_v1_sql_format","name":"Format SQL (verified to mean the same query)","description":"Pretty-print SQL for 19 dialects (postgresql, mysql, sqlite, bigquery, snowflake, transactsql, redshift, trino, spark, duckdb, ...): keyword case, indent, tabular styles, expression width. Before returning, every output is checked: same token sequence as the input (comments kept), and for PostgreSQL the same parse tree from the real PostgreSQL parser. If a check fails the output is refused and you POST https://sql-check.fmf-x402.workers.dev/v1/sql/format ($0.001 per call via x402 on Base or MPP on Tempo)","tags":["paid","fmf-tools"]}],"related":{"name":"FMF Recipes","what":"Which paid API to call for any agent task","find":"https://agent-recipes.fmf-x402.workers.dev/mpp/recipes/find","price_usd":0.003,"empty_call_ok":true,"mcp":"https://agent-recipes.fmf-x402.workers.dev/mcp","llms":"https://agent-recipes.fmf-x402.workers.dev/llms.txt"},"also":{"name":"FMF Tools Etsy Movers","what":"Today's top 20 Etsy shops by sales acceleration from the FMF Tools Etsy Pulse panel (no input)","find":"https://etsy-movers.fmf-x402.workers.dev/etsy/movers/today","price_usd":0.01,"empty_call_ok":true,"mcp":"https://etsy-movers.fmf-x402.workers.dev/mcp","llms":"https://etsy-movers.fmf-x402.workers.dev/llms.txt"}}