test_procedure
Test stored procedures safely in a sandboxed transaction that rolls back changes by default, allowing verification without affecting database state.
Instructions
Test a stored procedure in 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": {
"procedure": "<procedure>"
},
"name": "test_procedure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| sandbox | No | When true, wrap writes in a transaction and ROLLBACK (default from config) | |
| database | No | Database/schema name; defaults to connection default_database | |
| confirmed | No | Must be true for destructive operations when confirmation is required | |
| procedure | Yes | ||
| setup_sql | No | SQL to run before CALL | |
| connection | No | Named connection from config; defaults to default_connection | |
| capture_out | No | ||
| teardown_sql | No | SQL to run before ROLLBACK/COMMIT |