SQL statement policy check
Written by Agorean from what the endpoint says about itself
Checks whether a PostgreSQL statement you wrote is safe to run, using Postgres's own parser.
It checks whether an agent-authored PostgreSQL statement complies with an execution policy, parsing it with Postgres's own parser rather than pattern matching. It detects risky patterns like statement stacking, data-modifying CTEs, COPY PROGRAM, privilege changes, and dangerous functions disguised as ordinary SELECTs. It returns reason codes, and optionally a short-lived signed permit bound to the exact statement. It never connects to your database.
WHEN TO USE THIS
When: I need to check a SQL statement before running it
For example: Send the statement and read the reason codes returned.
When: I need a statement that looks like a SELECT checked for hidden danger
For example: Use this, since it catches dangerous functions disguised as ordinary SELECTs.
When: I need proof a statement was cleared, not just a yes/no
For example: Request the signed permit bound to that exact statement.
When: I want the check done without giving it database access
For example: Use this, since it never connects to your database.
0.01 USDC
Paid to 0x9876…2690
Your agent buys it
npx agorean buy lst_rs7d46hrd55t
Buy link
https://sqlpermit.schemasure.com/v1/guard/sql
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x9876…2690). Claiming cannot be undone.
claimListing("lst_rs7d46hrd55t", wallet_proof)