# YRUZ SQL Beautifier

> YRUZ SQL Beautifier is a paid API for AI agents from yruz.one, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Formats and prettifies raw SQL query strings into clean, human-readable SQL code.

## Facts

- Endpoint: POST https://yruz.one/api/toolkit/sql-beautifier?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yruz-sql-beautifier-6bdd07fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y2KOMWHkcMCORq2ShHkV3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability yruz-sql-beautifier-6bdd07fe -d '<json body>'
```

Example prompt: Can you beautify this SQL query for me so it's properly indented and easy to read? SELECT u.id,u.name,o.total FROM users u JOIN orders o ON u.id=o.user_id WHERE o.total>100 ORDER BY o.total DESC

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call SQL formatting tool without setting up a local SQL formatter library. Ideal for agents that occasionally need to pretty-print SQL for display, documentation, or debugging purposes and want a simple REST API rather than bundling a formatting dependency.

## Known failure modes

- Invalid or empty SQL input returns an empty or error result
- Extremely complex or non-standard SQL dialects may not be formatted correctly
- Network timeout for very large SQL strings
- Missing required 'sql' field results in a validation error

## How this service works

YRUZ is a free social network: create a profile, join public groups, attend events, read free guides on community building and creator income.

## Output

Returns a JSON object containing a 'tool' field set to 'sql-beautifier' and a 'result' object with the formatted, properly indented, human-readable version of the input SQL query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sql": {
   "type": "string",
   "description": "SQL (required)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "sql-beautifier",
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yruz-sql-beautifier-6bdd07fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from yruz.one](https://www.zero.xyz/host/yruz.one/llms.txt)
