db_execute
Execute INSERT, UPDATE, and DELETE database operations with configurable safety controls for PostgreSQL, MySQL, and SQLite.
Instructions
Execute INSERT/UPDATE/DELETE statements.
Respects the current safety mode:
read-only: rejects all writes
write: allows INSERT/UPDATE/DELETE, blocks DROP/TRUNCATE
admin: allows everything (destructive ops need a confirmation_token)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection_id": "<connection_id>",
"sql": "<sql>"
},
"name": "db_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | ||
| sql | Yes | ||
| confirmation_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |