Turn JSON or PostgreSQL jsonb payloads into compact readable context for LLMs. Use when a user wants to compress JSON, reduce token usage, summarize API responses, or convert structured data into model-friendly text without dumping raw paths.
85
85%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Risky
Do not use without reviewing
Turn JSON trees into short readable summaries that are easier for LLMs to consume than pretty JSON.
sectioned: default; best for LLM prompting because sections are easier to referenceflat: simpler bullet list; useful when section headers feel too verbose for tiny payloadsstrict: keep more literal structure and stop dropping default-false flagspreserve: force-keep keys or dotted paths such as status, profile.email, or ordersexpand collections: add sample sub-bullets under list summariesexpand details: add nested sub-bullets under detail summariesexpand all: expand both details and collectionsshow-paths: add [@path] markers so the model can trace each rendered line back to source locationsSummary for status, contact, timestamps, and other headline factsDetails for nested objects or extra attributesCollections for arrays and list-like fieldsnulldeleted=falseidname, title, label, usernamestatusemailactive=true → activeemail + email_verified=true → email x (verified)Prefer:
Type[id]: nameType selection order:
typeUser, Order, EventRecordName selection order:
nametitlelabelusernameemailInput:
{"orders":[
{"id":"A12","status":"paid","total":42},
{"id":"A13","status":"pending","total":18},
{"id":"A14","status":"paid","total":9}
]}Readable:
Context
Details
- Meta: count: 3.
Collections
- Orders: 3 total; statuses: paid 2, pending 1; examples: Order[A12] with status: paid and total: 42, and Order[A13] with status: pending and total: 18.--max-samples to reduce token usage further--max-depth for deeply nested payloads--max-string-len when text blobs dominate output--max-depth only when nested relationship details are important