Skip to main content
Glama

spl_decompress

Read-onlyIdempotent

Restore bytes packed by spl_compress. Accepts the base64 packed output; returns the original bytes as base64 plus their length. Read-only computation — nothing is stored. Use only on output from spl_compress; use spl_unzip for .pcc archives.

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": {
      "packed_b64": "<packed_b64>"
    },
    "name": "spl_decompress"
  }
}

Input Schema

NameRequiredDescriptionDefault
packed_b64YesBase64-encoded packed bytes previously returned by spl_compress.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / packed_b64 / description
      Added value: +"Base64-encoded packed bytes previously returned by spl_compress."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description still adds value beyond that: "nothing is stored" clarifies statelessness and it discloses the return shape (base64 bytes plus length), which matters since no output schema exists. It stops short of describing failure behavior for malformed or non-spl_compress input, which keeps it from a 5.

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 short sentences ordered by importance: what it does, what it takes and returns, then usage constraints and the sibling alternative. Every sentence carries distinct information and there is 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?

For a one-parameter pure computation with no output schema, the description supplies the missing pieces an agent needs: input provenance, return format and length, statelessness, and the sibling alternative. Nothing essential to invoking it correctly is absent.

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% for the single parameter, so the schema already explains that packed_b64 is base64-encoded packed bytes from spl_compress. The description's "Accepts the base64 packed output" restates the same fact without adding format, size, or validation detail, so the 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?

"Restore bytes packed by spl_compress" names a specific verb (restore) and resource (packed bytes), and the inverse relationship to spl_compress makes the tool's role unambiguous. The closing clause distinguishes it from spl_unzip, so an agent can pick between the two without opening either schema.

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?

"Use only on output from spl_compress" is an explicit precondition, and "use spl_unzip for .pcc archives" names the alternative plus the condition that selects it. Both the when and the when-not are stated, 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