Translate SQL between dialects
transpile_sqlConvert a SQL statement from one dialect to another — mysql, postgres, sqlite, tsql, oracle, snowflake, bigquery, redshift, spark, hive, presto, trino, duckdb, clickhouse, databricks, doris, starrocks and more. Deterministic parser (sqlglot), not an LLM: the same input always produces the same output, and syntax errors come back with the exact line and column. Use it when migrating queries between databases or debugging dialect-specific syntax.
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>",
"write": "<write>"
},
"name": "transpile_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement (or several, separated by semicolons). | |
| read | No | Source dialect, e.g. "mysql". Omit to auto-detect from generic SQL. | |
| write | Yes | Target dialect, e.g. "postgres", "bigquery", "doris". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||