Format SQL
format_sqlFormat SQL for PostgreSQL, MySQL, BigQuery, Snowflake, and other dialects. Choose keyword case and an indent of 2 or 4 spaces.
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_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL to format. | |
| indent | No | ||
| dialect | No | postgresql | |
| keywordCase | No | upper |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |