Skip to main content
Glama

Audit ZIP archive entries

audit_zip_entries

Inspect a base64 ZIP archive without extracting files to detect path traversal, polyglot, compression-ratio, encrypted-entry, duplicate-name, special-file, and metadata inconsistencies.

Instructions

Inspect a small base64 ZIP archive with zipcage and report traversal, polyglot, compression-ratio, encrypted-entry, duplicate-name, special-file, and metadata inconsistencies without extracting files.

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": {
      "archiveBase64": "<archiveBase64>"
    },
    "name": "audit_zip_entries"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNo
archiveBase64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden, and it does contribute meaningfully by disclosing that files are not extracted (implying a safe, read-only audit) and that archives should be small. It does not describe error behavior for oversized or malformed base64 input, execution cost, or how findings are structured in the response, leaving real behavioral gaps for a zero-annotation tool.

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?

A single front-loaded sentence that leads with the action and resource before the enumeration of checks. The seven-item check list is dense but each item is load-bearing, though it could be trimmed marginally without loss.

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?

The enumerated check categories effectively preview what the report covers, which partially compensates for the absent output schema. However, for a tool with a free-form nested options object and no annotations, the definition leaves too much unexplained — notably what options control and what the returned findings look like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across two parameters, and the description explains neither. 'archiveBase64' is inferable from its name and the word 'base64' in the description, but the nested free-form 'options' object (additionalProperties: true) is not mentioned at all, so an agent has no idea what knobs exist or what keys are accepted.

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 ('Inspect... and report'), a specific resource ('a small base64 ZIP archive'), and enumerates the exact classes of findings (traversal, polyglot, compression-ratio, encrypted-entry, duplicate-name, special-file, metadata). This is clearly distinguishable from siblings like audit_cookie, audit_cors, or audit_path, which operate on entirely different inputs.

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

Usage Guidelines3/5

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

Usage is only implied by scope: an agent can infer this is the tool for auditing ZIP archives rather than HTTP headers or cookies. There is no explicit when-to-use/when-not-to-use statement, no alternative named, and the 'small' qualifier is never given a concrete threshold, so the agent must discover the 1 MB schema cap itself.

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