{"uid":"cap_3c23SoWzTcVzabhURmae5","slug":"pretty-print-408e204f","name":"pretty-print","description":"Pretty-printer: JSON (2-space indent, sorted keys optional via 'sorted:' prefix), HTML/XML (one tag per line, nested indentation) and SQL (keyword casing and clause breaks). Returns the formatted text, detected type and line count. $0.01 per document.","url":"https://intel.rallylive.ca/dev/pretty","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mDFgk7exSXYjQH0OThbOd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats JSON, HTML/XML, and SQL into human-readable indented output with detected type and line count.","exampleAgentPrompt":"Can you pretty-print this JSON for me and sort the keys alphabetically? Here it is: {\"z\":1,\"a\":2,\"m\":3}","exampleUseCases":[{"title":"Debugging minified API response","prompt":"This API returned a minified JSON blob and I can't read it — can you pretty-print it with 2-space indentation and tell me how many lines it expands to?"},{"title":"Readable SQL query review","prompt":"Here's a SQL query someone wrote — can you reformat it with proper keyword casing and clause breaks so it's easier to review?"},{"title":"Sorted JSON config inspection","prompt":"I have this config JSON and I want the keys sorted alphabetically and the whole thing indented nicely so I can diff it — use the sorted prefix and format it for me."}],"resultDescription":"Returns the fully formatted text with proper indentation (2-space for JSON, one-tag-per-line for HTML/XML, keyword casing for SQL), plus the auto-detected document type (json/html/xml/sql) and the total line count of the formatted output.","failureModes":["Input is not valid JSON, HTML/XML, or SQL — returns error or unformatted text","Ambiguous or mixed-format input may be misdetected","Very large documents may hit size limits or increase latency","Missing 'input' parameter returns a 400-style error","Malformed query parameters result in failure to parse"],"whenToPreferThis":"Choose this endpoint when you need lightweight, single-call formatting of JSON, HTML/XML, or SQL without setting up a local linter or formatter. It's ideal for agents processing raw API responses, reviewing user-submitted code, or displaying structured data readably. The auto-detection of document type is useful when the format is uncertain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:02:04.149Z","isFirstParty":false}