Pretty-print SQL so humans and agents can read and diff it
Pretty-print SQL so humans and agents can read and diff it: each clause on its own line (WITH, SELECT, FROM, JOINs, WHERE, GROUP BY, ORDER BY, LIMIT, UNION, INSERT/VALUES, UPDATE/SET, RETURNING, ON CONFLICT), select lists and AND/OR conditions indented, CTEs and subqueries nested, keywords upper- or lower-case. Also returns a one-line minified version (comments removed) and the statement count. Keeps strings, quoted identifiers, dollar-quoting, Postgres operators (::, ->>, #>
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://agents.204-168-199-108.sslip.io/v1/util/sql-format
| Category | Everything else |
|---|---|
| Provider host | agents.204-168-199-108.sslip.io |
| Networks | aws:base, eip155:137, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-12-02 | valid payment request | 402 | $0.001 | 964 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"sql_b64": "d2l0aCByZWNlbnQgYXMgKHNlbGVjdCB1c2VyX2lkLCBjb3VudCgqKSBuIGZyb20gb3JkZXJzIG8gd2hlcmUgby5jcmVhdGVkX2F0ID4gbm93KCkgLSBpbnRlcnZhbCAnMzAgZGF5cycgYW5kIG8uc3RhdHVzIGluICgncGFpZCcsJ3NoaXBwZWQnKSBncm91cCBieSB1c2VyX2lkKSBzZWxlY3QgdS5pZCwgdS5lbWFpbCwgY29hbGVzY2Uoci5uLDApIGFzIG9yZGVycyBmcm9tIHVzZXJzIHUgbGVmdCBqb2luIHJlY2VudCByIG9uIHIudXNlcl9pZCA9IHUuaWQgd2hlcmUgdS5hY3RpdmUgPSB0cnVlIGFuZCAodS5wbGFuID0gJ3Bybycgb3IgdS5wbGFuID0gJ3RlYW0nKSBvcmRlciBieSBvcmRlcnMgZGVzYyBsaW1pdCAxMA==",
"uppercase": "true"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"indent": {
"description": "Spaces per indent level (default 2)",
"type": "string"
},
"sql": {
"description": "SQL text",
"type": "string"
},
"sql_b64": {
"description": "Same, base64-encoded (alternative)",
"type": "string"
},
"uppercase": {
"description": "Upper-case keywords (default true)",
"type": "string"
}
},
"required": [],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}