Run SQL statement
run_sqlExecute read-only SELECT and WITH queries on Oracle Database, using named bind parameters for safe data retrieval. Write operations are disabled unless explicitly allowed.
Instructions
Executes read-only SELECT/WITH SQL. This server was not started with --allow-write, so DML/DDL is disabled.
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": "run_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement to execute without a trailing semicolon. | |
| binds | No | Named bind parameters, e.g. {"id": 42}. | |
| allowWrite | No | Requests non-read-only execution when the server was started with --allow-write. |