text-to-sql-query-builder
Safety-checkedUse when the user asks a natural-language data question against a database in the current directory and wants a reviewable SQL query back. The agent discovers the schema and SQL dialect from the surrounding context (env vars, migration files, ORM models) before asking the user, drafts the query alongside a written rationale, and checks that the SQL parses in the right dialect, hits real columns, and stays read-only unless the user explicitly asked for a write.
OutcomeA reviewable SQL query plus a written rationale covering tables, joins, filters, output columns, and assumptions, all verified to parse in the inferred dialect, reference real columns from the schema, and avoid accidental writes.