write_sql
Execute INSERT, UPDATE, DELETE, or DDL queries on databases with read-write connections. Returns status and rows affected.
Instructions
执行写入 SQL(INSERT/UPDATE/DELETE/DDL)。 仅当连接 readonly=false 时允许。 Returns: JSON {status, rows_affected}.
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_name": "<connection_name>",
"query": "<query>"
},
"name": "write_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_name | Yes | Connection name (matches config.yaml connections[].name) | |
| query | Yes | SQL to execute (write) |