sql_dml
Execute single or batch INSERT, UPDATE, and DELETE in one atomic transaction, with multi-database routing, automatic rollback on failure, and AST guards against WHERE-less changes.
Instructions
在单一数据库原子事务中执行单条或批量数据增删改 (DML) 操作。支持多数据库路由(通过 db 参数指定目标数据库连接别名,缺省时路由至默认库)。受 --allow-dml 权限门禁保护,任何单步失败全量自动回滚,并在 AST 语法树层强制拦截无 WHERE 条件的 UPDATE 与 DELETE。
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": {
"sql": "<sql>"
},
"name": "sql_dml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | ||
| sql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||