Format SQL
sql_formatPretty-print a SQL query. This is a lightweight formatter, not a full SQL parser.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sql_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | The SQL query text to pretty-print. | |
| keywordCase | No | How to write SQL keywords: "upper" (the default), "lower", or "keep". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tool | Yes | ||
| result | Yes |