Run Strict Read-Only Query
ob_queryRun read-only SQL queries against OceanBase. Specify SQL, parameters, and row limit to inspect database securely.
Instructions
Run a strictly read-only SQL statement against OceanBase.
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_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| params | No | ||
| maxRows | No | ||
| profile | No |