queryshield

v1.0.1
io.github.bch1212/queryshield Checked 7 hours ago Published 7 months ago

Secure SQL proxy for AI agents — NL→SQL, AST safety, per-agent RLS, audit log.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

query_database Query Database

Run a natural-language question against a registered database. QueryShield translates to safe SQL, applies row-level security, and audit-logs the call.

ParameterTypeDescription
database_alias *stringalias of a database registered for this tenant.
question *stringnatural-language question.
max_rowsintegercap on returned rows (default 100, hard cap 5000).

query_database_sql Query Database Sql

Run a structured SELECT statement against a registered database. Useful when the agent already knows the schema and wants deterministic SQL (no LLM translation step). The same safety + RLS pipeline still applies — non-SELECTs are rejected.

ParameterTypeDescription
database_alias *string
sql *string
max_rowsinteger

get_audit_log Get Audit Log

Recent audit entries for the calling agent.

ParameterTypeDescription
limitinteger