format
Format SQL queries with customizable dialect, keyword casing, and indentation. Supports 14 SQL dialects including Postgres, MySQL, BigQuery, and Snowflake.
Instructions
Format a SQL query. Supports 14 dialects (Postgres, MySQL, SQLite, BigQuery, Snowflake, MSSQL, etc.). Default uppercases keywords.
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": "format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| dialect | No | sql | |
| tab_width | No | ||
| uppercase | No | Uppercase keywords (SELECT, FROM, etc.). |