translate_sql
Convert SQL queries between dialects like T-SQL, PostgreSQL, MySQL, Snowflake, BigQuery, and more. Handles LIMIT/TOP, COALESCE, date functions, and quoting differences.
Instructions
Translate a query between dialects (tsql, postgres, mysql, sqlite, snowflake, bigquery, databricks, oracle, duckdb, redshift): TOP<->LIMIT, ISNULL/COALESCE, GETDATE, DATEADD, string functions, quoting.
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>",
"to_dialect": "<to_dialect>"
},
"name": "translate_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| to_dialect | Yes | ||
| from_dialect | No | tsql |