Skip to main content
Glama

archive_create

Pack files and folders into a new ZIP, 7z, or TAR archive on the server, with optional password protection; refuses to overwrite an existing destination.

Instructions

Pack files and folders into a NEW archive on the server: zip, 7z or the TAR family (format, or from dest's extension), optionally with a password (zip, 7z). The bytes never travel over MCP - share dest to hand it out. Refuses an existing dest (TARGET_EXISTS). Needs files.download on every source. An encrypted file does not leave its encrypted folder inside an archive (E2E_BOUNDARY); into an encrypted folder only with allow_plaintext. It answers 202 with the queued operation ({op: {id, …}}): follow it with op_get {id} until its status is ok (or partial, failed, cancelled), stop it with op_cancel.

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": "archive_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
destYesadapter:// path of the archive to create; it must not exist yet
formatNozip, 7z, tar, tar.gz, tar.bz2 or tar.xz (default: from dest's extension, else the server's default); the administrator may allow fewer
sourcesYesadapter:// paths of the files and folders to pack (folders recurse)
passwordNoprotect a zip or 7z with this password; it goes to the job in memory only and is never logged
compressionNocompression level 0-9
allow_plaintextNoonly for a dest inside an end-to-end encrypted folder: store the archive there UNENCRYPTED on purpose
encrypt_filenamesNo7z with a password: hide the member names too

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it discloses that bytes never travel over MCP, the TARGET_EXISTS refusal, per-source permission requirements, and the E2E_BOUNDARY restriction with its allow_plaintext escape hatch. It also explains the asynchronous 202 response and the exact status values (ok, partial, failed, cancelled) an agent must poll for.

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?

It is information-dense and front-loaded with the core action and format list, followed by constraints and the async protocol. Some clauses are packed tightly (E2E boundary rules), but no sentence is 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 7-parameter async mutation tool with an output schema, the description covers the full lifecycle: preconditions, permission needs, error semantics, response shape, and the required polling/cancellation follow-up. An agent has everything needed to invoke it correctly and handle the queue.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema by tying format selection to dest's extension, noting the administrator may allow fewer formats, and clarifying the security semantics of allow_plaintext and the E2E boundary. Password non-logging is largely redundant with 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 opens with a specific verb and resource ('Pack files and folders into a NEW archive on the server') plus the supported formats. It is clearly distinct from siblings like archive_extract and file_unzip because it explicitly describes creation of a new archive rather than extraction.

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 concrete context: dest must not already exist (TARGET_EXISTS), files.download is required on every source, and it names the follow-up tools op_get and op_cancel with the polling loop. It does not explicitly point at archive_extract as the counterpart for the reverse operation, so the alternative routing is implied rather than stated.

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