execute_batch
Execute one SQL statement against multiple parameter sets (up to 1000) and receive affected row counts per statement. Ideal for bulk data operations; verify results with SELECT to confirm correct writes.
Instructions
批量执行同一条 SQL 的多个参数集(最多 1000 行)。需要 permissions 包含 batch。返回 affectedRowsPerStatement 数组,推荐用 SELECT 验证副作用以保证数据写入正确(v4.0 G8 流程改进)。
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>",
"paramsList": "<paramsList>"
},
"name": "execute_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| paramsList | Yes | ||
| maxBatchSize | No | ||
| useTransaction | No |