{"uid":"cap_y2KOMWHkcMCORq2ShHkV3","slug":"yruz-sql-beautifier-6bdd07fe","name":"YRUZ SQL Beautifier","description":"YRUZ is a free social network: create a profile, join public groups, attend events, read free guides on community building and creator income.","url":"https://yruz.one/api/toolkit/sql-beautifier?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sql":{"type":"string","description":"SQL (required)"}}},"responseSchema":{"type":"json","example":{"tool":"sql-beautifier","result":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ka2C4Kn8Tz5zIg8xCqsx4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats and prettifies raw SQL query strings into clean, human-readable SQL code.","exampleAgentPrompt":"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","exampleUseCases":[{"title":"Formatting minified database migration SQL","prompt":"I have this minified SQL migration script that's impossible to read — can you beautify it so I can review the logic before running it? CREATE TABLE sessions(id INT PRIMARY KEY,user_id INT NOT NULL,token VARCHAR(255),created_at TIMESTAMP DEFAULT NOW());"},{"title":"Preparing SQL for documentation","prompt":"I need to include a SQL query in our technical docs but it's all on one line with no formatting — please prettify it so it's readable: SELECT p.name,p.price,c.name AS category FROM products p INNER JOIN categories c ON p.category_id=c.id WHERE p.active=1"},{"title":"Cleaning up auto-generated ORM query","prompt":"My ORM spat out this ugly SQL query for debugging purposes — can you format and indent it nicely so I can understand what it's doing? SELECT \"users\".\"id\",\"users\".\"email\",\"orders\".\"amount\" FROM \"users\" LEFT OUTER JOIN \"orders\" ON \"orders\".\"user_id\"=\"users\".\"id\" WHERE \"users\".\"active\"=TRUE"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:41:58.572Z","isFirstParty":false,"canonicalSlug":"yruz-sql-beautifier-6bdd07fe"}