text-to-sql-query-builder
@randalolson/text-to-sql-query-builderSafety
Runnable
Well-formed
Use 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.
Cut the time to answer a data question by letting people self-serve read-only SQL verified against the real schema instead of waiting on an analyst, with accidental writes to the database held at zero.
Use this template
Your agent fetches this runbook and runs it, revising the output until the verifiers pass.
First time with Goodeye?
Connect your agent over MCP, then ask it to fetch this template by its identifier. Or install the CLI and run the command below.
claude mcp add --transport http goodeye https://mcp.goodeye.dev/mcpuv tool install goodeyeConnecting over MCP prompts a quick sign-in. The CLI can fetch and run a public template with no account.
Fetch or fork
goodeye templates get @randalolson/text-to-sql-query-buildergoodeye templates fork @randalolson/text-to-sql-query-builderAlso available from
get_template(identifier="@randalolson/text-to-sql-query-builder")curl https://api.goodeye.dev/v1/templates/@randalolson/text-to-sql-query-builder