Skip to main content
Glama

archive_extract

Extract stored archives such as ZIP, 7z, RAR, and TAR into a chosen folder, optionally selecting specific members or supplying a password. Returns a queued operation to track until complete.

Instructions

Extract an archive already in storage (zip, 7z, rar, tar, tar.gz, tar.bz2, tar.xz, …) into a folder on the server - its own folder unless dest says another - with password for a protected one (PASSWORD_REQUIRED when it needs one). members picks entries. Members under one of filex's own names are skipped; an encrypted archive cannot be opened (E2E_ENCRYPTED); 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": {
      "path": "<path>"
    },
    "name": "archive_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
destNoadapter:// folder to extract into, on the archive's storage (default: the archive's own folder)
pathYesadapter:// path of the archive (zip, 7z, rar, tar, tar.gz, …)
membersNoonly these entries, by their name inside the archive (default: all)
passwordNothe archive's password, if it has one; never logged
allow_plaintextNoonly when the destination is inside an end-to-end encrypted folder: extract there UNENCRYPTED on purpose

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.1/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full load and does so well: it discloses the asynchronous 202 response with a queued op object, the required polling loop, the terminal statuses, reserved-name skipping, and the two distinct failure modes (E2E_ENCRYPTED and PASSWORD_REQUIRED). That is substantially more behavioral context than the schema provides.

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?

Purpose and default behavior are front-loaded in the first clause, and every subsequent clause carries real information (error codes, async pattern). The prose is dense and stacks parentheticals and dashes, which slightly hurts readability but does not waste words.

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 5-parameter async mutation tool with no annotations, the description covers the input contract, the encryption/permission failure paths, and the operation lifecycle an agent must drive after the 202. Since an output schema exists, it reasonably omits return-value detail while still explaining the op envelope.

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%, so the schema already documents dest, path, members, password and allow_plaintext, and most description clauses restate them ('members picks entries', 'its own folder unless dest says another'). The only genuine addition is tying password to the PASSWORD_REQUIRED error, which is marginal beyond the schema baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Starts with a specific verb and resource ('Extract an archive already in storage') and enumerates the supported formats, so the operation and its input type are unambiguous. It does not, however, distinguish itself from the sibling file_unzip, which an agent could easily confuse with this tool.

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 clear conditional context: use password when the archive is protected (PASSWORD_REQUIRED otherwise), use members to limit entries, use allow_plaintext when the destination is an encrypted folder. It also prescribes the follow-up workflow (op_get polling until ok/partial/failed/cancelled, op_cancel to stop), though it never states when to pick this over file_unzip.

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