run_script
Execute a pre-approved SQL script by name with custom parameters. Use list_scripts to see available templates.
Instructions
Executes a named SQL script with parameters. Scripts are pre-approved SQL templates. Use list_scripts to see available scripts.
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": {
"scriptName": "<scriptName>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptName | Yes | Name of the script to execute (from list_scripts) | |
| parameters | No | Parameter values for the script (key-value pairs) | |
| preview | No | If true, shows the resolved SQL without executing. Default: false | |
| confirm | No | Required for scripts with requiresApproval or in environments with requireApproval. Set to true after reviewing preview. | |
| environment | No | Target environment (optional, uses default if not specified) |