execute_sql_file
Execute SQL migration or DDL scripts as a single atomic transaction; any failure triggers automatic rollback for data integrity.
Instructions
Execute a SQL file containing migration scripts or DDL statements. The entire file is executed as a single transaction - all changes are rolled back if any statement fails. Only available in unrestricted access mode.
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": {
"file_path": "<file_path>"
},
"name": "execute_sql_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the SQL file to execute |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |