doris_execute_query
Run read-only SQL queries against Doris and return result columns and rows, with non-read-only statements rejected and oversized results truncated at max_rows.
Instructions
执行只读 SQL 并返回列与行。非 SELECT/SHOW/DESC/EXPLAIN/WITH 一律拒绝, 本服务没有任何写通道。结果超出 max_rows 时 truncated=true。
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": "doris_execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | 只读 SQL:SELECT / SHOW / DESC / EXPLAIN / WITH | |
| database | No | 可选,执行前切换到的库 | |
| max_rows | No | 可选,本次返回的最大行数 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |