Skip to main content
Glama

file_unzip

Extract a stored .zip archive into a server-side destination directory with zip-slip protection, returning the number of files written.

Instructions

Extract a .zip already in storage into dest_dir ON THE SERVER (zip-slip protected; every entry stays within your confinement root). Returns the number of files written. Extracting into an end-to-end encrypted folder is refused with E2E_PLAINTEXT_REFUSED unless allow_plaintext is set.

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": {
      "src": "<src>",
      "dest_dir": "<dest_dir>"
    },
    "name": "file_unzip"
  }
}

Input Schema

NameRequiredDescriptionDefault
srcYesadapter:// path of the .zip to extract
dest_dirYesadapter:// directory to extract into (same storage as src)
allow_plaintextNoonly when files would land inside an end-to-end encrypted folder: extract them there UNENCRYPTED on purpose

Output Schema

NameRequiredDescriptionDefault
refusedNo
skippedNo
extractedYes
skipped_moreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does a good job: it discloses zip-slip protection, confinement-root enforcement, return value, and the E2E_PLAINTEXT_REFUSED refusal unless allow_plaintext is set. It does not mention overwrite/conflict behavior or permissions, but the security and error semantics are unusually well covered.

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 dense sentences front-load the operation and destination, then add security and error behavior. Every sentence contributes useful information with no filler.

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?

For a server-side extraction tool with an output schema and no annotations, the description covers purpose, confinement safety, return count, and a key refusal case. Some operational details such as overwrite behavior and permissions are omitted, but the core information needed to invoke it correctly is present.

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 already 100%, so the schema documents src, dest_dir, and allow_plaintext in detail. The description reinforces allow_plaintext in the context of E2E folders and adds confinement behavior, but it does not add significant parameter meaning beyond the schema.

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?

The description states a specific verb and resource: extracting a .zip already in storage into dest_dir on the server. It clearly scopes the operation to .zip archives in storage, though it does not explicitly distinguish itself from sibling archive tools such as archive_extract or file_zip.

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?

The description implies when to use it by specifying a .zip already in storage and the server-side destination. However, it gives no explicit when-not-to-use guidance and does not name alternative tools for other archive formats or extraction scenarios.

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