test_script
Execute SQL scripts in a sandbox transaction that automatically rolls back, allowing you to test queries and procedures without altering the database.
Instructions
Execute a script inside a sandbox transaction (ROLLBACK by default).
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": {
"script": "<script>"
},
"name": "test_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| sandbox | No | When true, wrap writes in a transaction and ROLLBACK (default from config) | |
| database | No | Database/schema name; defaults to connection default_database | |
| delimiter | No | ||
| connection | No | Named connection from config; defaults to default_connection |