read_query
Execute read-only SQL queries (SELECT/WITH) against Dameng databases using parameterized statements with ? placeholders, returning columns, rows, row count, and truncation status.
Instructions
执行只读查询(SELECT/WITH)。sql 用 ? 占位符,参数放 params。 受 DM_MAX_ROWS 限制;返回 {columns, rows, row_count, truncated}。
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": "read_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| params | No | ||
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||