pgbrake
v0.3.0Postgres brake for AI agents: risky SQL waits for approval, UPDATE/DELETE get one-command undo.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
query
Run a read-only SQL query (SELECT/EXPLAIN). Writes are rejected here.
| Parameter | Type | Description |
|---|---|---|
sql * | string |
execute
Run SQL that may modify data. Returns rows, a change id for undo, or an approval id when a human must approve first.
| Parameter | Type | Description |
|---|---|---|
sql * | string | |
approval_id |
undo
Reverse a change made through pgbrake, by change id.
| Parameter | Type | Description |
|---|---|---|
change_id * | string | |
force | boolean |
list_changes
List recent changes that can be undone.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
approval_status
Check whether an approval id has been approved by a human yet.
| Parameter | Type | Description |
|---|---|---|
approval_id * | string |