util_sql_lint
SQL linter, formatter and safety check — Static analysis of SQL before you run it (nothing is executed). Splits statements, reports each statement's type, tables read/written/deleted/dropped, parameters and whether it is read-only, then lints: UPDATE/DELETE without WHERE, DROP/TRUNCATE/ALTER DROP, GRANT ALL, OR 1=1 tautologies, stacked queries, file/system/sleep functions (OUTFILE, xp_cmdshell, pg_sleep), SELECT *, = NULL, NOT IN subquery NULL trap, leading-wildcard LIKE, cartesian comma joins, ORDER BY RANDOM(), INSERT without columns, LIMIT without ORDER BY, deep OFFSET, NOLOCK. Verdict OK/REVIEW/DANGEROUS/INVALID plus safe_to_auto_execute, a formatted version and a minified one. dialect=generic|postgres|mysql|sqlite|tsql. Pairs with /v1/ai/sql for agents that generate SQL. Price: $0.003 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "util_sql_lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | select * from users where email = null; delete from sessions |