Skip to main content
Glama

Zip files or unzip an archive

zip_files
Read-onlyIdempotent

Create a ZIP archive from files or list and extract the contents of a ZIP archive. Everything is handled in memory; no files are stored.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "zip_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNozip
filesNoFiles to zip (zip mode).
archiveNoArchive to extract (unzip mode).

Output Schema

NameRequiredDescriptionDefault
zipNoBase64 ZIP bytes (zip mode).
modeYes
filesNoExtracted files (unzip mode).
fileCountYes
totalBytesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Added

TDQS

A4/5.0
Behavior4/5

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

The line 'Everything is handled in memory; no files are stored' adds real context beyond the annotations, explaining why readOnlyHint=true holds for a tool that 'creates' an archive and confirming no persistence side effects. It does not mention limits (e.g., the 200-file cap) or failure behavior on malformed base64, which would have pushed this higher.

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?

Two tight sentences, front-loaded with the two operations and followed by the in-memory guarantee, with no filler. The phrase 'list and extract' is slightly imprecise since the mode enum exposes only zip and unzip, which costs it a point.

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 dual-mode tool with nested objects, the description covers both directions of operation and the key non-obvious behavior (in-memory, no stored files). An output schema exists, so return values need not be explained, and the remaining details live in the schema.

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 coverage is 67%, with the mode enum and per-property descriptions already carrying most of the meaning. The description restates the zip/unzip split ('from files' vs 'extract the contents') without adding format details such as base64 encoding or size ceilings, so it adds only marginal value over the schema.

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?

The description names both concrete operations with specific verbs and resources: creating a ZIP archive from files, and listing/extracting the contents of an archive. This clearly distinguishes it from siblings like compress_pdf, compress_image, or base64_codec, which handle different resource types.

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?

Usage is only implied through the two described operations; there is no explicit statement of when to pick this tool over a sibling such as compress_pdf for PDFs, nor any when-not guidance. The mode split gives an agent enough to infer intent, but nothing more.

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.