execute_sql
Run SQL queries on Dameng database with enforced schema limits. Supports conditional row fetching and pagination via limit and offset.
Instructions
执行 SQL 语句(强制限定配置下的SCHEMA操作)
参数: sql: 要执行的 SQL 语句 fetch_results: 是否返回查询结果(默认 True) limit: 限制返回的行数,用于分页(可选) offset: 跳过的行数,用于分页(可选)
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": "execute_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | No | ||
| offset | No | ||
| fetch_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |