sql_lint
Parse errors with line/column, dialect translation (postgres, mysql, sqlite, bigquery, snowflake, tsql…), schema check against your table/column list, pretty-print. fix=true asks the model for a corrected query and re-validates it (price ×2). Never connects to a database. Cost €0.002 per query, charged to the API key in Authorization: Bearer. Parameters — sql: query text; dialect: source dialect (default generic); to_dialect: translate to this dialect; schema: JSON {table: {column: type}}; pretty: bool, format the output; fix: bool, LLM-fix on error (price ×2).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sql_lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | ||
| sql | No | ||
| pretty | No | ||
| schema | No | ||
| dialect | No | ||
| to_dialect | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |