Skip to main content
Glama

llmtrim_compress_text

Compress a single text blob, like a tool output or document, and report the token savings. Use this to shrink one chunk instead of a whole request.

Instructions

Compress a single text blob and report the token savings. Use this to shrink one chunk (a tool output, a document) rather than a whole request. The text is wrapped in a minimal request, compressed, and the shrunk text is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesA single text blob to shrink (a tool output, a document, a message). It is wrapped in a one-message request, compressed, and the shrunk text is returned.
Behavior3/5

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

No annotations provided, so description carries full burden. It describes the process ('wrapped in a minimal request, compressed, shrunk text returned') but lacks details on side effects, authentication needs, or error conditions. Token savings reporting is noted.

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

Conciseness5/5

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

Two sentences: first states purpose and output, second provides usage guidance. Zero fluff, every sentence earns its place.

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?

Given only one parameter, no output schema, and no annotations, the description adequately covers what the tool does and when to use it. It lacks return format details but is sufficient for a simple compression tool.

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 param description that mostly repeats tool description. Description adds no new meaning beyond schema; baseline 3 is appropriate.

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?

Description uses specific verb 'Compress' and identifies the resource as 'a single text blob', and mentions 'report the token savings' as output. It distinguishes from siblings in context signals (llmtrim_compress, llmtrim_stats).

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

Usage Guidelines4/5

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

States 'Use this to shrink one chunk rather than a whole request', providing clear context and implied exclusion for whole-request compression. Does not explicitly name the alternative tool but sibling names are present.

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

Install Server

Other Tools

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/fkiene/llmtrim'

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