Rewrite SQL
ob_rewrite_sqlRewrites SELECT and WITH SQL statements into a read-only, safe form without executing them, enabling secure database inspection.
Instructions
Rewrite SELECT/WITH SQL into a safer read-only form without executing it.
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": {
"sql": "<sql>"
},
"name": "ob_rewrite_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| params | No | ||
| maxRows | No | ||
| orderBy | No | ||
| profile | No | ||
| maxColumns | No |