validate_sql
Validate SQL syntax by checking parseability, then return the statement type and target tables as JSON. Supports multiple SQL dialects including Presto.
Instructions
校验 SQL 可解析性并返回语句类型/目标表。返回 JSON。
Args: sql: 待校验的 SQL。 dialect: SQL 方言,默认 presto。
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": "validate_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| dialect | No | presto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |