Skip to main content
Glama

Compact Tool Payload Locally

monaa_compact_payload
Read-onlyIdempotent

Compacts verbose tool output locally by stripping node_modules, target, .git bloat, redundant whitespace, and loop echoes to reduce token usage without cloud calls.

Instructions

Deterministically compacts verbose tool output by stripping node_modules, target, .git bloat, redundant whitespace, and loop echoes locally (40%-65% typical savings, 0 cloud calls).

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": {
      "payload": "<payload>"
    },
    "name": "monaa_compact_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesRaw text or tool output payload to compact locally.
record_savingsNoSet true to add these token savings into the local savings ledger.

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?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world); the description adds genuinely new behavior: deterministic output, 40%-65% typical savings, and no cloud calls. It stays silent, however, on the one mutating side effect implied by record_savings — writing to a local savings ledger — which slightly works against the readOnly framing, and on whether compaction can lose meaningful content.

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 tight sentence that front-loads the verb and mechanism, then the quantified benefit and the local-only guarantee. No filler or repetition of the name.

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 two-parameter, fully described, non-destructive transform tool with annotations covering safety, the description supplies the important missing context: determinism, expected savings, and locality. Only the ledger side effect and any output-shape note (it produces compacted text rather than writing anywhere) are left unstated.

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 both payload and record_savings are already documented in structured data and the baseline is 3. The description adds no extra meaning such as expected payload formats, size limits, or what 'ledger' entries look like.

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 (compacts) and resource (verbose tool output) plus the concrete things stripped: node_modules, target, .git bloat, redundant whitespace, loop echoes. The purpose is unmistakable and far from the sibling tools (safety check, doctor, savings report), though the description never explicitly contrasts itself with them.

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?

Phrases like 'verbose tool output' and 'loop echoes' imply the situation where it applies, and 'locally, 0 cloud calls' hints at its niche. It never states when to skip it (e.g., small payloads, non-text data) or points to monaa_savings_report as the follow-up, so the guidance is only implicit.

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