{"uid":"cap_ciMLMNyASnrPkXV5JFdx4","slug":"kihustle-sql-query-formatter-d50f523f","name":"KiHustle SQL Query Formatter","description":"Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.","url":"https://kihustle.tech/nexus/api/v1/sql-query-formatter?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"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_PH0q74yM1c7pyzRQmkbeb","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 beautifies raw SQL query text into a clean, readable structure","exampleAgentPrompt":"Can you format this SQL query so it's properly indented and easy to read? Here it is: 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":"Clean up minified SQL for review","prompt":"I have this minified SQL from a legacy codebase and I need it formatted properly before my code review: SELECT a.id,a.name,b.amount FROM accounts a LEFT JOIN billing b ON a.id=b.account_id WHERE b.amount IS NOT NULL AND a.active=1 ORDER BY b.amount DESC LIMIT 50"},{"title":"Format SQL before documentation","prompt":"Can you prettify this SQL statement so I can paste it into our technical docs? It needs proper indentation and capitalized keywords: select p.product_name,c.category_name,sum(s.quantity) as total_sold from products p inner join categories c on p.category_id=c.id inner join sales s on p.id=s.product_id group by p.product_name,c.category_name"},{"title":"Readable SQL for debugging","prompt":"This SQL query is one long ugly line and I can't figure out where the bug is — can you reformat it so I can actually read the structure? select * from orders o join customers c on o.customer_id=c.id where o.status='pending' and c.region='EU' and o.created_at > '2024-01-01'"}],"resultDescription":"Returns a JSON object with a 'result' field containing the formatted/prettified SQL string and a 'status' field indicating success or failure of the formatting operation.","failureModes":["Invalid or malformed input text that cannot be parsed as SQL may return an error or unformatted result","Empty 'text' field may return a generic processed result or error","Extremely long SQL strings may time out or be truncated","Non-SQL text passed in the text field may be returned without meaningful formatting"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call SQL formatting operation without setting up a local formatter library. Suitable for agents that occasionally need to clean up SQL strings in pipelines, generate readable SQL for documentation, or prepare queries for human review.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:47:57.821Z","isFirstParty":false,"canonicalSlug":"kihustle-sql-query-formatter-796703e9"}