Skip to main content
Glama

tksq_pack

Compress child-agent output before returning it to a parent agent, preserving code blocks, file paths, line numbers, and key identifiers to reduce token use in multi-agent pipelines.

Instructions

Compress agent output for efficient return to parent agent. Optimized for multi-agent pipelines: applies medium/aggressive compression while preserving code blocks, file paths, line numbers, and key identifiers. Returns only the compressed text (minimal overhead). Use this as the last step before returning results from a child agent.

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_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe agent output text to compress
levelNoCompression level. medium=balanced (default), aggressive=maximum reduction
languageNoLanguage. auto=detect (default), en=English, ru=Russian

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does a decent job: it discloses what survives compression (code blocks, file paths, line numbers, key identifiers) and what is returned ('only the compressed text, minimal overhead'). It leaves unstated whether compression is lossy beyond those preserved elements or how large inputs are handled.

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?

Four short sentences, front-loaded with the core action and closed with the usage instruction. The multi-agent-pipeline framing and the closing 'last step' sentence overlap slightly, but there is no real filler.

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 three-parameter text transform with full schema coverage and no output schema, the description explains the preservation guarantees and the return shape well enough to invoke correctly. The main omitted detail is the lossy/lossless tradeoff at the aggressive level.

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%, so the schema already documents text, level, and language with enum meanings; the baseline is 3. The description only echoes the level values ('medium/aggressive') and says nothing about the language parameter, adding little 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?

Names a specific verb and resource ('Compress agent output') and scopes it to the child-agent return path, so the intent is unmistakable. It does not, however, distinguish itself from the sibling tksq_compress, leaving the agent to infer which compression tool applies.

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 a concrete placement instruction: 'Use this as the last step before returning results from a child agent,' plus the multi-agent pipeline context. It stops short of exclusions or naming an alternative (e.g. when to prefer tksq_compress instead).

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