Skip to main content
Glama

headroom_compress

Compress bloated JSON, JSONL, logs, stack traces, CSV, or prose and cache raw payloads for lossless retrieval by hash, path, span, slice, or regex.

Instructions

Reversibly compress bloated JSON arrays, JSONL, terminal logs, stack traces, CSV, or prose using SmartCrusher/LogCrusher/TracebackCrusher and cache the exact raw payload in the CCR vault.

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": {
      "content": "<content>"
    },
    "name": "headroom_compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
sourceNoOptional label (e.g. 'kubectl-pods' or 'pytest').
contentYesRaw tool output or payload to compress.
modalityNoOptional explicit modality override; omit for auto-detection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses two behavioral traits: the operation is reversible and the raw payload is cached in the CCR vault as a side effect. It does not say what is returned (compressed text vs. a handle/id), whether compression is lossy for semantics, or any size/rate constraints.

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?

A single dense sentence with the verb and payload types front-loaded; no filler. The internal engine names (SmartCrusher/LogCrusher/TracebackCrusher) are jargon that adds little, a small deduction.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema and no annotations means the description must cover the return contract, and it does not: an agent cannot tell whether it receives compressed text, a vault key, or statistics. For a caching/compression tool whose whole point is a follow-up retrieval, that is a real gap, though the core invocation is adequately covered.

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 75%, so the schema already documents content, source, modality, and force. The description's modality list mirrors the enum but adds no format-specific guidance (e.g., when to force 'traceback' vs. rely on auto-detection, or what 'force' actually overrides). Baseline 3 applies.

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 ('Reversibly compress') and an enumerated set of resources (JSON arrays, JSONL, terminal logs, stack traces, CSV, prose), plus the named engines and caching destination. An agent can tell this is the compression entry point rather than grep/align/stats, though no sibling is named explicitly.

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?

Usage is implied by the qualifier 'bloated' and the listed payload types, so an agent can infer 'use this on large noisy output.' There is no explicit when-not guidance, no mention that retrieval requires a follow-up call, and no statement about threshold size or when plain reading is preferable.

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