GateRook classifies each call as a read, a change or a denial before it runs, using its own rules for each connector, never the AI's description:
- SQL: GateRook reads the statement as the database itself would.
sql_queryruns one statement and refuses anything that isn't a read or that it can't analyze. Transaction control, temporary tables, writing files and functions that act outside the transaction are refused everywhere. A function GateRook doesn't know as built in sends the call to approval. - HTTP:
GETandHEADare reads;POST,PUT,PATCHandDELETEare changes. - AWS and Google Cloud: the read tools accept only operations that GateRook classifies as reads from the provider's own API description; changes go through a tool that waits for approval.
- SSH:
ssh_execalways waits for approval, and a saved runbook runs at once only when you marked it read only. - External MCP servers: the server's own declaration, which GateRook can't verify.
If a call can't be classified, it is denied. No classifier is perfect, so SQL reads also run in read-only transactions where the database supports them, and a read-only database user is still worth having.