check_sql
Validate SQL queries against a schema snapshot to catch non-existent or stale table and column names before running them. Returns close matches for corrections without executing the query.
Instructions
Tables and columns in sql that don't exist in the snapshot, with close matches. Does not run the query.
dialect: bigquery, snowflake, databricks, postgres, duckdb ... (default: the snapshot's).
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": "check_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| dialect | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |