execute_readonly_query
Execute strictly read-only SELECT or WITH queries with automatic ROWNUM capping and a configurable row limit to safely inspect Oracle data.
Instructions
Executes a strictly READ-ONLY query (SELECT/WITH) with automatic ROWNUM capping.
Args: sql_query: A SELECT or WITH query to execute. max_rows: Maximum number of rows to return (1-500, default 50).
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_query": "<sql_query>"
},
"name": "execute_readonly_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_rows | No | ||
| sql_query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |