Skip to main content
Glama

tksq_benchmark

Benchmark text compression across light, medium, and aggressive levels to compare token reduction by domain and choose suitable settings for your content.

Instructions

Benchmark compression on a text sample across all levels and domains. Shows token reduction for each level (light, medium, aggressive) side by side. Helps choose optimal compression settings for your content.

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": "tksq_benchmark"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to benchmark
domainNoDictionary domain (default: general)
languageNoLanguage for compression dictionaries. auto=detect from text (default), en=English, ru=Russian
tokenizerNoTokenizer for counting (default: cl100k_base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.8/5.0
Behavior3/5

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

Without annotations, the description carries the full behavioral burden. It usefully states that results show token reduction for each level side by side, but it does not clarify that the operation is read-only, how domains factor into the benchmark, or any cost or performance characteristics.

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?

The description is three tightly written sentences, front-loaded with the core action and followed by the output and benefit. Every sentence contributes useful information without redundancy.

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?

The tool is moderately complex with four parameters and no output schema, and the description explains the key comparison output and decision-support purpose. It is nearly complete, though it could note whether the benchmark modifies anything or how the single domain parameter relates to the 'all domains' phrasing.

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?

The input schema has 100% description coverage for all four parameters, including enums and defaults. The description adds no parameter-specific meaning beyond what the schema already provides, which is acceptable given the high coverage.

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 uses a specific verb and resource ('Benchmark compression on a text sample') and explains the comparison output across levels. It is clearly distinct from a one-off compression tool, though it does not explicitly name or differentiate against sibling tools.

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?

The final sentence gives a clear usage context: it helps choose optimal compression settings for the content. It does not state when not to use the tool or explicitly route the agent to alternatives such as tksq_compress for actual compression.

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