DEV Community

Mads Hansen
Mads Hansen

Posted on

Your AI database agent probably needs fewer rows, not more context

A lot of AI database safety discussions start and stop at read-only access.

Read-only is necessary.

It is not sufficient.

A read-only agent with broad table access can still return customer records, private notes, billing details, free-text fields, and operational data that was never needed for the question.

The agent did not mutate anything.

It still saw too much.

That is why data minimization matters for AI database workflows.


Most users want an answer, not a dump

A useful agent does not need unlimited rows.

It needs:

  • the right approved view
  • enough schema context
  • scoped permissions
  • row limits
  • redaction before data reaches the model
  • audit logs showing what was returned

The model should not receive every table just because the database role can technically read it.


Approved views beat raw tables

Approved views let teams encode:

  • safe columns
  • valid joins
  • source-of-truth metrics
  • default filters
  • fields that should never leave the database

That improves security and answer quality at the same time.

A model working against a clean semantic view is less likely to confuse implementation details with business meaning.

We wrote the full piece here: Data minimization for AI database agents: return less by default

Conexor helps teams expose databases and APIs as MCP tools for AI clients without turning “more context” into the default.

Returning less data is not friction.

It is what makes the workflow safe enough to repeat.

Top comments (0)