sql_format
Formats unformatted SQL queries into readable code. Supports MySQL, PostgreSQL, SQLite, and ANSI dialects.
Instructions
Format/beautify SQL queries with configurable dialect.
Parameters:
sql — Raw SQL query to format.
dialect — SQL dialect: 'ansi' (default), 'mysql', 'postgresql', 'sqlite'.
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": "sql_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| dialect | No | ansi |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |