Skip to main content
Glama

toon_optimize_prompt

Optimize prompts by converting data structures to TOON format for token efficiency, reducing LLM usage and costs while maintaining data integrity.

Instructions

Optimize a prompt containing data for token efficiency.

Detects data structures within the prompt and converts them to TOON format, adding instructions for the LLM to understand the format.

Returns the optimized prompt with estimated token savings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesThe full prompt containing data to optimize

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elminson/toon-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server