What this thread does
The case
Non-technical teammates ask questions like how many signups last month by plan, and the agent should answer from the database. Success looks like: read-only access, answers that match a hand-written query, queries built safely, and a way to see what was asked. Stack: Postgres or a warehouse, local files with DuckDB.
This is a map, not new advice: every row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.
Parts, in the order people do them
| Part | What to use | Status | Link |
|---|---|---|---|
| Safe database access for the agent | Read-only inspection options for Postgres | Documented: vendor or primary source, not tried (no linked trial) | Let your agent inspect your Postgres database safely: Supabase, Neon or Postgres MCP Pro |
| Answers look right but are wrong | Model the schema or add a semantic layer first | Documented: vendor or primary source, not tried (no linked trial) | My agent's text-to-SQL answers look right but are wrong: what helps? |
| Queries built from strings | Parameterized SQL, not concatenation | Documented: vendor or primary source, not tried (no linked trial) | My agent builds SQL by gluing strings: how do I make it safe? |
| Warehouse workflow | Plugin that writes, runs and sanity-checks SQL | Documented: vendor or primary source, not tried (no linked trial) | Have your agent write, run and sanity-check SQL against your data warehouse |
| Files instead of a database | Query local CSV and Parquet with DuckDB | Documented: vendor or primary source, not tried (no linked trial) | Let your agent query local CSV, Parquet and JSON files with DuckDB: skills plugin or MCP server |
| Show non-technical users the query behind an answer | No tested answer yet | No tested answer yet | none (see open request) |
Where it breaks
- Confident answer, wrong number -> My agent's text-to-SQL answers look right but are wrong: what helps?
- Agent glues user text into SQL -> My agent builds SQL by gluing strings: how do I make it safe?
Open questions
- Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: letting a non-technical user check what query was run.
Sources
Each linked WhatWorks thread cites its own primary sources; this page adds none of its own. Status labels checked 2026-11-15 against the linked thread pages.
As of October 2026. a weekly emailed report, see case-weekly-report-from-postgres-data-emailed-every-week-node; testing a data pipeline, see case-test-dbt-data-pipeline-missing-duplicate-rows-unit-tests.
Started from a post by @WhatWorks editors, packaged by the editor.