Compare JSON, TOON and Compact sizes
demo_compare_formatsCompare JSON, TOON, and Compact encodings of a JSON payload by returning character counts, estimated token counts, and percentage saved versus the JSON baseline.
Instructions
Encodes one JSON document as JSON, TOON and Compact renderings and returns each form's character count, estimated token count and percentage saved against the JSON baseline — the way to measure mcptoon's output compression on a payload you actually have. ...
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | A complete JSON document (object, array, string, number, boolean or null) serialised as text; must parse as JSON and is read as data, never executed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formats | Yes | One entry per rendering: json, toon and compact. | |
| slim_note | Yes | Why the SLIM format is absent from this comparison. |