{
  "slug": "sql-formatter",
  "name": "gizza-ai/sql-formatter",
  "version": "0.1.0",
  "title": "SQL Formatter — pretty-print / beautify SQL queries — gizza.ai",
  "description": "Format, beautify and standardize SQL queries in your browser. Clauses on their own lines, configurable indentation, keyword casing. Nothing is uploaded.",
  "tags": [
    "sql formatter",
    "sql beautifier",
    "format sql",
    "pretty print sql",
    "sql pretty print",
    "beautify sql query",
    "sql indenter"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/sql-formatter/",
    "markdown": "https://gizza.ai/tools/sql-formatter/index.md",
    "descriptor": "https://gizza.ai/tools/sql-formatter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/sql-formatter/?sql=select%20id%2C%20name%20from%20users%20where%20age%3E18%20order%20by%20name&indent=2&keyword_case=upper"
  },
  "cli": "gizza tool sql-formatter \"select id, name from users where age>18 order by name\"",
  "tool": {
    "description": "Pretty-print (beautify) and standardize a SQL query — major clauses on their own lines, select-list items one per line, AND/OR broken and indented, function calls kept tight, string literals and comments preserved. indent sets spaces per level (0-8, default 2); keyword_case = upper (default), lower, or preserve. Dialect-agnostic and forgiving. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "indent": {
          "default": 2,
          "description": "Spaces of indentation per nesting level (0-8, default 2).",
          "maximum": 8,
          "minimum": 0,
          "type": "integer"
        },
        "keyword_case": {
          "default": "upper",
          "description": "Casing for SQL keywords: upper (default), lower, or preserve (keep as written).",
          "enum": [
            "upper",
            "lower",
            "preserve"
          ],
          "type": "string"
        },
        "sql": {
          "description": "The SQL query to format.",
          "type": "string"
        }
      },
      "required": [
        "sql"
      ],
      "type": "object"
    }
  }
}