db_execute_write
Run INSERT or UPDATE SQL queries to modify database data while preventing dangerous DELETE operations. Handles read replicas gracefully by failing safely.
Instructions
Execute a write SQL query (INSERT or UPDATE only). DELETE is not allowed. Fails gracefully on read replicas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL query to execute. Only INSERT and UPDATE queries are allowed. DELETE is not permitted. | |
| timeout | No | Query timeout in milliseconds (default: 30000, max: 300000) |