Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Extract archive

extract_archive

Extracts a local archive into a new folder named after it, supporting zip, tar, 7z, rar, gz, bz2, xz and zst. Use it to unpack stored files; encrypted archives require a password.

Instructions

Extract an archive on the local disk into a new folder named after it. Use when: unpacking; look with list_archive_members first. Instead: list_archive_members to look; decrypt_file for .axenc files. A remote archive: copy_path_to_backend (needs --mcp-tools transfer and --mcp-write) first. Requires: --mcp-tools archive. Behavior: only adds. The folder is the name minus its suffix ('x.tar.gz' -> 'x'; 'notes.txt.gz' -> 'notes.txt' holding the file); taken, it becomes 'x-1', 'x-2' ...; a repeat makes a new folder. An encrypted archive needs password. Zip-slip, over 10,000 members or 1 GiB unpacked, or zip bombs are refused, leaving nothing. Time limit: 30 min. Returns: {path (the new folder), files}, plus skipped_links and note (how many links were left out) when there were links.

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

Input Schema

NameRequiredDescriptionDefault
pathNoThe archive on the local disk (absolute, or relative to the MCP root): zip family, tar.*, 7z, rar, gz, bz2, xz or zst. Required unless path_b64 is given.
dest_dirNoAn existing local folder that receives the new folder (absolute, or relative to the MCP root). Default: the archive's folder.
passwordNoThe password of an encrypted 7z or ZIP (e.g. one create_archive made with a password). Without it such an archive fails with 'the archive is encrypted with a password'; a wrong one fails too. Never logged or returned.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
dest_dir_b64Nodest_dir as base64 of its raw bytes, for non-UTF-8 names; replaces dest_dir.

Output Schema

NameRequiredDescriptionDefault
noteNo
pathYes
filesYes
skipped_linksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare non-readonly, non-destructive, non-idempotent; the description corroborates this with 'only adds', the collision scheme ('x-1', 'x-2', a repeat makes a new folder), and the fact that refusals leave nothing behind. It further discloses the 10,000-member/1 GiB/zip-slip/zip-bomb refusals, the 30-minute time limit, the password requirement for encrypted archives, and that links may be skipped.

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?

Uses a consistent Use when / Instead / Requires / Behavior / Returns skeleton with the primary action first and no filler sentences. Every clause carries an actionable fact despite the telegraphic style.

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 five-parameter extraction tool it covers prerequisites, naming and collision behavior, encryption, resource limits, partial-failure guarantees, and the return payload. Although an output schema exists, the Returns line adds the conditional skipped_links/note fields concisely.

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 still adds meaning: the folder-naming derivation clarifies how dest_dir is populated, the compression examples ('notes.txt.gz' -> 'notes.txt' holding the file) clarify how single-file archives map to members, and the password parameter's failure mode is spelled out.

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?

States a specific verb and resource with its scope: 'Extract an archive on the local disk into a new folder named after it.' The naming outcome distinguishes it from generic unpackers and the sibling list is addressed explicitly rather than left inferable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives when-to-use ('unpacking; look with list_archive_members first'), names concrete alternatives (list_archive_members, decrypt_file for .axenc), and routes the remote-archive case to copy_path_to_backend along with the flags that case requires.

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