validate_sql
Checks SQL syntax without connecting to a database, helping catch structural errors before execution. Returns validity status and identified issues for the supplied SQL and dialect hint.
Instructions
Validate SQL syntax without touching a database.
Args: sql: SQL text. dialect: Dialect hint (informational; no parser is dialect-specific here).
Returns: Validity and any structural issues found.
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 | generic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||