Skip to main content
Glama

llmtrim_compress_text

Compress a single text blob to reduce token count and report savings. Use to shrink individual chunks like tool outputs or documents.

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.
Behavior4/5

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

Explains the compression process (wrapping in minimal request, returning shrunk text) and implicitly indicates no side effects. Without annotations, the description adequately covers basic behavior.

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?

Three sentences with no filler; purpose is front-loaded and all content is relevant.

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?

For a simple single-parameter tool with no output schema, the description is adequate, covering usage and process. Could mention return format details.

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%, so the description adds marginal value. It provides examples of what 'text' can be, but the schema already says similar.

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?

The description clearly states the tool compresses a single text blob and reports token savings. It distinguishes from siblings by specifying 'one chunk' vs 'whole request'.

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?

Provides explicit context ('use this to shrink one chunk') and contrasts with whole-request compression, though it does not name the sibling tool directly.

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