Skip to main content
Glama

spl_compress

Read-onlyIdempotent

Compress bytes with the hosted lossless engine (PCC and sibling codecs). Accepts base64 input; returns base64 packed bytes, sizes, and the method used. Read-only computation — nothing is stored. Metered: first 1 GB free once per IP, then $0.25/GB; a paid seat or x402 payment may be required (402). Use to shrink data; use spl_decompress to restore it, spl_zip to pack files.

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": {
      "data_b64": "<data_b64>"
    },
    "name": "spl_compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
data_b64YesBase64-encoded bytes to compress. Must be valid base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / data_b64 / description
      Added value: +"Base64-encoded bytes to compress. Must be valid base64."
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, but the description adds materially new context: nothing is stored, the response includes base64 packed bytes plus sizes and method, and there is a metering model (1 GB free per IP, then $0.25/GB) with a possible 402 payment/paid-seat requirement. That pricing and 402 detail is exactly the operational behavior an agent needs before calling.

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?

Three sentences, front-loaded with the core action, then return contract, then billing/alternatives. Every clause carries distinct information (codecs, encodings, metering, sibling routing) with no filler.

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

Completeness5/5

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

With no output schema, the description compensates by describing the return payload (base64 bytes, sizes, method used). Combined with the metering/402 note and sibling routing, an agent has everything needed to invoke this single-parameter tool correctly.

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?

There is a single parameter with 100% schema description coverage that already states 'Base64-encoded bytes to compress. Must be valid base64.' The description's 'Accepts base64 input' restates the schema rather than adding format, size, or encoding nuance, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Compress bytes with the hosted lossless engine'), names the codec family (PCC and siblings), and specifies the input/output encoding. It also explicitly distinguishes itself from spl_decompress and spl_zip, so an agent can pick it without opening sibling schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: 'Use to shrink data; use spl_decompress to restore it, spl_zip to pack files.' The alternative tools and the condition that selects them are named, leaving nothing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources