Review a SQL statement before running it against production
agent402.tools/api/sql-guard
Review a SQL statement before running it against production: a pass / warn / block verdict naming concrete risks (unbounded UPDATE or DELETE, tautological WHERE, DROP, TRUNCATE, statement stacking, privilege changes, catalog writes) and, on pass, an Ed25519 certificate bound to the statement's SHA-256 that a database layer can verify before executing. Use it as the last check between an agent and
POST
https://agent402.tools/api/sql-guardUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/sql-guard", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"sql":"UPDATE users SET plan = 'pro' WHERE id = 42"}),
});
console.log(await res.json());Example input
{
"sql": "UPDATE users SET plan = 'pro' WHERE id = 42"
}