I don't understand the premise. Who is letting "agents" run arbitrary SQL against their database without human review?
Before redesigning your database, consider seeing a psychiatrist.