{"uid":"cap_P6R_raquhsvuX9GWiK9x1","slug":"kihustle-sql-query-formatter-e1a34089","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/agents/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_DzlmxUOTiJp9r-__qFra1","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 clean, readable SQL","exampleAgentPrompt":"Can you format this messy SQL query so it's properly indented and readable: 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":"Debugging ugly production SQL","prompt":"I pulled this SQL from our logs and it's all on one line with no spacing — can you format it so I can actually read what it's doing? SELECT a.id,a.name,b.amount FROM accounts a LEFT JOIN billing b ON a.id=b.account_id WHERE b.status='unpaid' AND a.region='EU'"},{"title":"Code review cleanup before commit","prompt":"Before I commit this SQL migration script, can you reformat it with proper indentation and line breaks so the team can review it easily? Here's the raw query: INSERT INTO orders(user_id,product_id,qty,price) SELECT u.id,p.id,1,p.price FROM users u CROSS JOIN products p WHERE p.featured=1"},{"title":"Documentation SQL snippet formatting","prompt":"I need to include a SQL example in our API docs but right now it's just one messy line — please clean it up with nice formatting: SELECT c.name,COUNT(o.id) AS order_count,SUM(o.total) AS revenue FROM customers c JOIN orders o ON c.id=o.customer_id GROUP BY c.name HAVING revenue>500"}],"resultDescription":"Returns a JSON object with a 'result' field containing the formatted SQL string and a 'status' field indicating success or failure of the formatting operation.","failureModes":["Invalid or non-SQL text input returns an error or unprocessed result","Empty string input may return a generic success with empty result","Extremely long queries may time out or be truncated","Malformed JSON body returns a 400-level error","Network or payment processing failure returns a 402 or 5xx response"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call SQL formatting service with no subscription or API key required — particularly useful for agents that need to occasionally clean up SQL snippets without integrating a full developer toolchain. At $0.002 per call it is cost-effective for low-to-moderate volume formatting tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:55:12.908Z","isFirstParty":false,"canonicalSlug":"kihustle-sql-query-formatter-796703e9"}