Skip to main content
Glama

compress

Compress a prompt into dense language and return the version with fewer tokens (typical 20-40% saving). Use it BEFORE sending prompts to any LLM to cut token cost without losing meaning. input=text to compress. [x402: 0.001 USDC on Base, pay-per-use]

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "input": "<input>"
    },
    "name": "compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesText or prompt to compress

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / input / description
      Previous value: -"Texto/prompt a comprimir"New value: +"Text or prompt to compress"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does real work: it discloses expected savings (20-40%), claims meaning preservation, and surfaces the x402 payment requirement (0.001 USDC on Base, pay-per-use) — an auth/cost fact an agent cannot infer elsewhere. It omits whether compression is reversible or how long inputs are handled, so it's strong but not complete.

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?

Front-loaded with the core action and payoff, then usage, then the parameter, then pricing. Four compact clauses with no filler. The 'input=text to compress' clause is redundant with the schema and could be dropped.

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 one-parameter transform tool with no output schema, the description covers what it does, when to call it, the expected effect, and the payment model. The return value is described in prose ('the version with fewer tokens'), so nothing critical is missing, though output shape is only loosely specified.

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 description coverage is 100% for the single 'input' parameter, so baseline is 3. The line 'input=text to compress' merely restates the schema's own 'Text or prompt to compress' and adds no format, length, or content-type guidance.

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

Purpose4/5

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

States a specific verb and resource ('Compress a prompt into dense language') plus the concrete outcome ('fewer tokens, typical 20-40% saving'). It's immediately clear what the tool does, though it never distinguishes itself from similarly named siblings such as 'distilla-compress'.

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?

Gives explicit timing guidance: 'Use it BEFORE sending prompts to any LLM to cut token cost without losing meaning.' That's a clear triggering condition. It doesn't say when NOT to use it or when an alternative (e.g., a plain rewrite) would be preferable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.