Skip to main content
Glama

archive-preflight

Archive extraction preflight: zip-slip, duplicate destinations, symlink conflicts — Checks a manifest of up to 2000 archive entries (path, type, link target, sizes) before extraction, for an agent that unpacks zip, tar or OOXML files: ../ traversal (also through backslashes), absolute, drive-letter and UNC paths, entries that write through a symlink, symlink and hardlink targets that leave the root, duplicate destinations, case-only and NFC/NFD collisions, Windows reserved names,

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": {
      "entries": "<entries>"
    },
    "name": "archive-preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitsNo
entriesYesAt most 200000 characters of paths and link targets in total.
targetsNoFilesystems to check collisions and name rules for. Default: windows, macos and linux.
destinationRootNoExtraction directory; counted towards total path length.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose real behavior: the 2000-entry ceiling, the traversal variants covered (backslash, UNC, drive-letter), NFC/NFD and reserved-name checks. It never says whether it only reports findings or also blocks/writes, what the findings object looks like, or how severity is surfaced, which matters for a validator the agent must act on.

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?

Front-loaded with the tool's identity, and each subsequent clause adds a concrete check. The trailing comma-separated run of checks in one sentence is dense and ends abruptly, hurting scanability but not wasting words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nested-object validator with no output schema and no annotations, the description should say what comes back (findings list? boolean? per-entry diagnostics). It defines the input domain thoroughly but leaves the output contract entirely unstated.

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 75%, and the description only glosses the entries array ('path, type, link target, sizes'). It says nothing about `targets` (per-OS collision rules), `destinationRoot`, or `limits` (maxTotalBytes, maxExpansionRatio), so an agent must read the schema to use half the surface meaningfully.

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 ('Archive extraction preflight'), names the exact artifact it works on ('a manifest of up to 2000 archive entries') and its position in the workflow ('before extraction'). The enumeration of checks (zip-slip, duplicates, symlink conflicts) makes the scope unmistakable and no sibling tool overlaps it.

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 context: 'for an agent that unpacks zip, tar or OOXML files' and the pre-extraction timing. It does not state exclusions or point to an alternative when a manifest isn't available (e.g. a raw archive path), so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources