Skip to main content
Glama

Compare compression levels

compare_levels
Read-only

Run every risk level on the same text and report token savings for each so you can pick the right compression trade-off.

Instructions

Run every risk level on the same text and report token savings for each, so you can pick the right trade-off.

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": {
      "text": "<text>"
    },
    "name": "compare_levels"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to analyze.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this a safe, closed-world read (readOnlyHint=true, openWorldHint=false). The description adds real value by disclosing that the tool runs every level, implying multiple compression passes and a comparative result set rather than a single output. It does not say whether the compressed text itself is returned or only savings figures, nor how many levels exist, so the behavioral picture is incomplete.

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?

One sentence, front-loaded with the action and ending on the payoff. Nothing is padded, and the trade-off rationale justifies its own clause.

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 read-only tool with no output schema, the description covers what it does and what it returns at a high level. The remaining gaps, namely the set of levels and the exact shape of the report, are minor but not fully resolved.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents it and the baseline is 3. The description only restates that the same text is used across all levels, adding no format, size, or length constraints beyond the schema.

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?

The description gives a concrete verb and resource: run every risk level on the same text and report per-level token savings. It is clearly a comparative, all-levels operation, which distinguishes it in spirit from a single-compression sibling, but it never names an alternative tool, so differentiation is inferential.

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

Usage Guidelines3/5

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

"So you can pick the right trade-off" implies the use case: you invoke this when the level choice is still open. There is no explicit when-not guidance, no mention of when a single-level compress is cheaper or preferable, and no named alternative such as compress_prompt or estimate_tokens.

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