Skip to main content
Glama

Compact a block of text

squeeze_text

Compacts long logs, stack traces, or other text into a concise summary without running commands, preserving errors and key details within a configurable line budget.

Instructions

Compacts a log, stack trace or other long text the same way run does, without running anything.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to compact.
budget_linesNoMost lines to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It usefully signals that nothing is executed ('without running anything'), which reassures the agent this is a pure transformation with no side effects. It does not describe the shape of the result, determinism, or how budget truncation is applied, leaving some behavioral burden unmet.

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?

A single well-formed sentence that front-loads the core action and ends with the distinguishing constraint. There is no filler or 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?

For a simple two-parameter transformation tool with a fully described schema and no output schema, the description covers what it does and the key 'no execution' trait. It is nearly complete, with only minor gaps around the expected output form that the schema largely covers.

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% and both parameters (`text`, `budget_lines` with bounds and default) are documented in the schema. The description adds no additional meaning about what `text` should look like or how `budget_lines` affects compaction, so 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 ('compacts') and concrete resource types ('a log, stack trace or other long text'), and explicitly contrasts with the sibling `run` by noting it does the same thing 'without running anything'. An agent can distinguish this from `run` directly; other siblings like `read_output`/`grep_output` are not addressed, but the core purpose is clear.

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?

The phrase 'the same way `run` does, without running anything' implies when to reach for this over `run` (you already have text and don't want execution), which is useful routing. However, it never states explicitly when to use it versus alternatives like `read_output` or `grep_output`, nor any exclusions, so guidance remains implied rather than stated.

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

Deploy Server

Other Tools