Skip to main content
Glama

file_zip

Pack files and folders into a .zip archive written directly to server storage, so large archives never travel over MCP. Share the resulting zip path instead of reading it.

Instructions

Pack one or more files/folders into a .zip ON THE SERVER (folders recurse). The archive is written to storage at dest - the bytes never travel over MCP. To let someone download a big zip, call file_share on dest; do NOT file_read it. Packing needs download permission on every source. Files inside an end-to-end encrypted folder cannot be packed into a zip outside it (E2E_BOUNDARY); the encrypted folder itself can, with its key file.

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": {
      "sources": "<sources>",
      "dest": "<dest>"
    },
    "name": "file_zip"
  }
}

Input Schema

NameRequiredDescriptionDefault
destYesadapter:// path of the .zip to create (same storage as the sources)
sourcesYesadapter:// paths to pack (files and/or folders; folders are zipped recursively)
allow_plaintextNoonly for a dest inside an end-to-end encrypted folder: store the zip there UNENCRYPTED on purpose

Output Schema

NameRequiredDescriptionDefault
entryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the load and does so well: output is written server-side to storage at `dest`, bytes never traverse MCP, permissions are required on all sources, and the E2E boundary constraint and its error code are disclosed. It omits what happens if `dest` already exists (overwrite vs fail), which is the main behavioral gap for a write tool.

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 consequences, then constraints. The 'do NOT file_read it' prohibition is crisp and every clause carries operational information; nothing is padding.

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?

An output schema exists, so return values need no explanation, and the description covers the non-obvious parts: server-side execution, permission prerequisites, follow-up routing, and encryption boundaries. The remaining gap is pre-existing-destination behavior, minor against an otherwise complete picture for a 3-parameter tool.

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 100%, so `dest`, `sources`, and `allow_plaintext` are already documented in the schema, and the description largely restates that framing (sources recurse, dest is the archive path). It adds contextual meaning via the E2E boundary discussion but does not extend semantics of any parameter beyond the schema. Baseline 3 is appropriate.

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 a specific verb and resource ("Pack one or more files/folders into a .zip") and adds a distinguishing scope qualifier ("ON THE SERVER", "folders recurse"). An agent can tell this apart from file_unzip or a client-side archive operation without opening the schema.

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?

It gives explicit downstream routing — use file_share on `dest` for a download, explicitly do NOT file_read it — plus a precondition (download permission on every source) and a named failure case (E2E_BOUNDARY). It stops short of contrasting with archive_create/archive_extract, which are plausible overlapping siblings, so it is clear but not exhaustively routed.

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