Skip to main content
Glama

Encode a document to TOON

demo_encode_toon
Read-onlyIdempotent

Converts a JSON document into TOON format and returns the encoded text. Use when you need the encoded form alone.

Instructions

Converts a JSON document into TOON, the line-oriented format mcptoon can serve in place of JSON, and returns the encoded text. Use it when you need the encoded form by itself; to see it next to the other formats with savings percentages use compare_formats, and to read such text back use decode_toon. ...

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesA complete JSON document serialised as text; keys with embedded newlines or unescaped quotes are escaped rather than rejected.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toonYesThe TOON encoding, previewed past 500 characters.
charsYesLength of the full encoding, preview or not.
truncatedYesWhether the text above was cut for transport.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.14

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds useful behavioral context beyond them: the output is text, the format is line-oriented, and it is a drop-in substitute for JSON that mcptoon can serve. It does not discuss size/limits or failure behavior, but with strong annotations a 4 is fair.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Efficiently front-loaded: the core function leads, followed by usage conditions and sibling routing in a single flow. The trailing ellipsis indicates the description is truncated mid-sentence, which slightly undercuts an otherwise tight structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so explaining the return value is unnecessary, and annotations carry the safety profile. The description covers purpose, usage, and alternatives adequately; only the truncated tail and lack of any error/limit behavior keep it from a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a single required parameter whose escaping/leniency behavior is documented in the schema itself. The description adds no syntax or format detail about the payload beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (converts/encodes) and resource (a JSON document into TOON), and explicitly distinguishes itself from two named siblings: compare_formats and decode_toon. An agent can identify this as the standalone encoder without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use it ('when you need the encoded form by itself') and routes to the two alternatives with their distinguishing conditions: compare_formats for side-by-side savings, decode_toon for the reverse direction. Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.