format_sql
Transform unstructured SQL queries into neatly formatted, readable code. Supports configurable indentation and dialect options for MySQL, PostgreSQL, and SQLite.
Instructions
Format and pretty-print SQL queries
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 query to format | |
| indent | No | ||
| dialect | No | SQL dialect | postgresql |