Skip to main content
Glama

Compress a file exactly

singularis_compress
Idempotent

Compress files losslessly to reduce size while guaranteeing bit-exact restoration. Use for archives, datasets, logs, or checkpoints that must remain identical.

Instructions

Compress a file exactly (lossless, bit-exact restore) with Singularis compression. Use for archives, datasets, logs, model checkpoints, anything that must come back identical. Input: a local file path; optional out_path (default: path + '.sing'). Returns the output path, bytes in/out, ratio, and an exact-restore check (hash of a trial restore equals the original). Decompress with singularis_decompress.

Input Schema

NameRequiredDescriptionDefault
pathYes
out_pathNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare the mutation/idempotency/open-world profile, and the description adds real context beyond them: bit-exact lossless semantics, the default output naming convention, and a post-run exact-restore hash check. It doesn't mention performance, size limits, or failure modes, keeping it below 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 tight sentences, front-loaded with purpose, then inputs, then return summary. Every sentence earns its place with no redundancy against the schema or annotations.

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?

Despite an output schema existing, the description briefly summarizes the return payload (output path, bytes in/out, ratio, restore check), and covers inputs, semantics, and the decompress counterpart. Nothing needed to invoke correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 0%, the description carries the parameter burden and does: it defines path as a local file path and out_path as optional defaulting to path + '.sing'. Both parameters are meaningfully documented, though no format or path-type detail is given.

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+resource (compress a file) with the distinguishing qualifier 'exactly (lossless, bit-exact restore)'. Names the inverse sibling singularis_decompress, so an agent can immediately tell it apart from the many other singularis_* compute tools.

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 concrete use cases (archives, datasets, logs, model checkpoints) and the selecting condition 'anything that must come back identical', plus routes to singularis_decompress for the inverse. It stops short of explicit when-not-to-use or non-lossless alternatives, so not a full 5.

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