Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

List archive members

list_archive_members
Read-onlyIdempotent

List archive members and their uncompressed sizes on local disk without extracting, so you can inspect contents before unpacking.

Instructions

List the members of an archive on the local disk without extracting. Use when: checking contents or unpacked size before extract_archive. Instead: extract_archive (needs --mcp-write) to unpack. A remote archive: copy_path_to_backend (needs --mcp-tools transfer and --mcp-write) first. Requires: --mcp-tools archive. Behavior: read-only, local disk only. Unknown or damaged files fail; an encrypted 7z or ZIP needs password; 7z needs py7zr, rar rarfile. Refuses secret files. Time limit: 60 s. Returns: {path, total, truncated, entries: [{name, size, compressed, mtime (Unix seconds), modified (ISO 8601), is_dir}]}.

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

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.
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.
max_entriesNoReturn at most this many members; total still counts all, truncated tells when some were left out.

Output Schema

NameRequiredDescriptionDefault
pathYes
totalYes
entriesYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/idempotentHint/destructiveHint annotations: it discloses the required server flag (--mcp-tools archive), local-disk-only scope, failure modes for unknown or damaged archives, password requirements for encrypted 7z/ZIP, library dependencies (py7zr, rarfile), secret-file refusal, and a 60-second time limit. That is exactly the runtime context the annotations do not carry.

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 purpose, then cleanly partitioned into Use when / Instead / Requires / Behavior / Returns labels that an agent can scan quickly. The Returns block largely restates the existing output schema, which is the only sentence that does not fully earn its place.

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 read-only listing tool with four optional parameters, an output schema, and full annotation coverage, every agent-facing question is answered: gating flags, local-vs-remote handling, encryption handling, failure cases, and truncation semantics. Nothing needed to invoke it correctly is missing.

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 path, password, path_b64 and max_entries are already fully documented, including password writeOnly behavior and the truncated/total interplay. The description's note that an encrypted 7z or ZIP needs a password restates schema content rather than adding new meaning, so the baseline of 3 applies.

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 plus a scoping constraint: 'List the members of an archive on the local disk without extracting.' The phrase 'without extracting' immediately separates it from extract_archive, so an agent can choose between them without reading either schema.

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 an explicit when-to-use ('checking contents or unpacked size before extract_archive'), an explicit alternative and its cost ('extract_archive (needs --mcp-write) to unpack'), and a prerequisite path for remote archives via copy_path_to_backend, including the flags that gate it. Nothing is left to inference.

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