Skip to main content
Glama

list_archive

Read-only

Browse the contents of ZIP, 7z, RAR, or TAR archives on your cloud drive without downloading them, one directory at a time. Retry shortly if status is PENDING.

Instructions

List what is inside an archive file (.zip, .7z, .rar, .tar, .tar.gz, .tar.bz2, .tar.xz) without downloading it, one directory at a time. status PENDING means the server is still reading it; retry shortly.

Input Schema

NameRequiredDescriptionDefault
dirNodirectory inside the archive, e.g. docs/2024; empty for the top level
pathNoabsolute Gopan path of the archive, alternative to node_id
cursorNo
node_idNoarchive file node UUID (.zip, .7z, .rar, .tar, .tar.gz, .tar.bz2, .tar.xz)

Output Schema

NameRequiredDescriptionDefault
errorNo
totalYesentries in this directory
formatYes
statusYesPENDING (still reading, retry shortly), DONE, TRUNCATED (only part listed), UNSUPPORTED or FAILED
entriesYes
file_countYes
total_sizeYesuncompressed bytes of all files
next_cursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

readOnlyHint=true already declares this is a safe read, and the description adds genuinely new behavioral context: contents are read server-side without downloading, and a PENDING status means an in-progress read that should be retried. It stops short of saying whether results are truncated or how a PENDING response is shaped, so with annotations already covering safety the added value is moderate rather than rich.

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?

Two sentences, zero filler, with the core operation and its key constraint front-loaded before the async PENDING caveat. Every clause carries information an agent needs.

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 four-parameter read tool with readOnlyHint and a present output schema, the description covers purpose, scope, format set, and the one non-obvious behavior (asynchronous PENDING). Remaining gaps, cursor semantics and the path/node_id precedence, are modest but real.

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 schema itself documents dir, path, and node_id, including format examples, so the description contributes little parameter-level detail. "one directory at a time" loosely motivates dir and cursor paging, but cursor remains undocumented in both places and the path-vs-node_id choice is not resolved.

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 names a specific verb and resource ("List what is inside an archive file") and enumerates supported formats plus the non-downloading scope, so the operation is unambiguous. It implicitly separates itself from extraction siblings by stressing "without downloading it," but it never names extract_archive as the alternative, so sibling routing is left to inference.

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?

"one directory at a time" tells the agent to navigate level by level rather than expect a full recursive listing, and the PENDING note tells it to retry instead of treating the response as an error. What is missing is explicit guidance on choosing this over extract_archive or list_files, and on how to advance the cursor.

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