Skip to main content
Glama

archive_info

Summarize an archive without extracting it to report format, entry counts, sizes, encryption, suspicious paths, nested archives, and whether safe extraction is possible.

Instructions

Summarize an archive without extracting anything. Call this first.

Reports format (zip, tar, tar.gz/bz2/xz, gz/bz2/xz), entry counts by kind, compressed and uncompressed totals and ratio, encryption, zip comment, top-level layout, nested archives (reported only), suspicious entries (path traversal, absolute paths, links that escape, device files, duplicates, Windows-reserved names) and an "Extraction verdict" saying whether extract_archive would accept it.

password: only for ZipCrypto zips (standard-library limit; AES zips are unsupported). encoding: re-decode legacy zip names that are not flagged UTF-8, e.g. cp857 or cp1254 for Turkish, cp932 Japanese, gbk Chinese, cp1251 Russian (default cp437, as zip specifies).

Input Schema

NameRequiredDescriptionDefault
pathYes
encodingNo
passwordNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 load and does so well: it declares the tool is non-extracting/non-mutating, enumerates what it inspects (encryption, nested archives reported-only, suspicious entries), and gives a downstream verdict on extractability. The disclosed limits—ZipCrypto only, AES unsupported—are exactly the kind of behavioral caveat annotations would otherwise supply. It does not explicitly state read-only permissions or cost/rate characteristics, keeping it off a 5.

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?

The opening two sentences front-load purpose and ordering, and the parameter notes are separated cleanly. The middle report inventory is a long run-on enumeration, but each item is information-dense rather than filler, so it stays just short of a 5.

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 read-only inspection tool with three parameters, an agent has everything needed to call it correctly and anticipate the result. The one inefficiency is that it enumerates report contents at length even though an output schema exists, so some of that prose duplicates structured data rather than adding to it.

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 0%, so the description must compensate, and it does for two of three parameters: password is scoped to ZipCrypto zips with the AES limitation, and encoding explains the legacy-name re-decode behavior, the cp437 default, and concrete codec examples. The required path parameter gets no explanation at all, and nothing says whether these options are ignored or error out on irrelevant formats—so compensation is good but incomplete.

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 ('Summarize an archive without extracting anything') and immediately distinguishes itself from extraction siblings. It even names extract_archive as the downstream consumer of its verdict, so an agent can separate this from extract_archive, list_entries, or verify_archive without opening a schema.

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?

'Call this first' gives explicit workflow ordering, and 'without extracting anything' tells the agent when to prefer this over extract_archive. It stops short of excluding or contrasting the closer siblings verify_archive and list_entries, which overlap most with a summarization tool.

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