Skip to main content
Glama

Listar el contenido de un archivo ZIP

list_zip_contents
Read-only

List a remote ZIP file's members, including names and sizes, using HTTP Range requests so you can inspect archives without downloading them, even large ZIP64 files.

Instructions

List a remote ZIP's members (name, size) via HTTP Range requests, without downloading it; works for archives far beyond 5 MB, ZIP64 included.

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": {
      "url": "<url>"
    },
    "name": "list_zip_contents"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesDirect URL to a .zip file (from another tool's result, e.g. get_inec_publicacion_archivos, search_archivos(fuente='censo')).
limitNoMax members returned (default 200, max 1000).
formatNotext summary (default) or json structured result.text
offsetNoPagination offset over the member list.

Output Schema

NameRequiredDescriptionDefault
totalNo
sourceNo
archivosNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "archivos": {},
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "total": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Changed1 schema field changedv0.11.0
    • changedInput schema / properties / url / description
      Previous value: -"Direct URL to a .zip file (from another tool's result, e.g. get_inec_publicacion_archivos, search_archivos(fuente=\"censo\"))."New value: +"Direct URL to a .zip file (from another tool's result, e.g. get_inec_publicacion_archivos, search_archivos(fuente='censo'))."
  4. Changed4 schema fields changedv0.10.0
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / limit / description
      Added value: +"Max members returned (default 200, max 1000)."
    • addedInput schema / properties / offset / description
      Added value: +"Pagination offset over the member list."
    • addedInput schema / properties / url / description
      Added value: +"Direct URL to a .zip file (from another tool's result, e.g. get_inec_publicacion_archivos, search_archivos(fuente=\"censo\"))."
  5. Changed6 schema fields changedv0.8.14
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / offset / title
      Removed value: -"Offset"
    • removedInput schema / properties / url / title
      Removed value: -"Url"
    • removedInput schema / title
      Removed value: -"list_zip_contentsArguments"
    • removedOutput schema / title
      Removed value: -"list_zip_contentsDictOutput"
  6. First observedv0.8.12

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuine value beyond them: it discloses the Range-request mechanism, that the archive is not downloaded, and that large/ZIP64 archives are handled. It leaves out failure modes such as servers that reject Range requests or non-ZIP responses.

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?

A single dense sentence with zero filler: scope, mechanism, and size capability are front-loaded and each clause carries information. Nothing is repeated from the schema or annotations.

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?

An output schema exists, so return values need no explanation, and the pagination and format controls are in the schema. What remains unsaid is behavior on remote servers lacking Range support and the error surface, a small but real gap for an open-world HTTP tool.

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 every parameter (url, limit, format, offset) is already documented with defaults and bounds. The description adds no syntax, format, or offset-behavior detail beyond the schema, so the baseline of 3 applies.

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 a remote ZIP's members') and states the returned fields (name, size) plus the retrieval mechanism (HTTP Range). It is clear this is an inspection/listing tool rather than a content reader like read_zip_member, though no sibling is named explicitly.

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 context is implicit: 'without downloading it' implies you use this before deciding whether to fetch or read a member. There is no explicit statement of when to prefer read_zip_member or download_resource, and no exclusions or prerequisites beyond the URL sourcing note that lives in the schema.

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

Deploy Server

Other Tools