Skip to main content
Glama

Ver archivos de una sección de un archivo institucional

get_archivo_seccion
Read-only

Retrieves downloadable file links (title, URL, format) for a specific section ID; use it to locate and directly download large source files instead of fetching contents.

Instructions

List the downloadable files (title, URL, format) in one section from list_archivo_secciones. Returns links, not file contents; download large files directly (preview/download tools cap at 5 MB).

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": {
      "fuente": "<fuente>",
      "seccion": "<seccion>"
    },
    "name": "get_archivo_seccion"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNotext summary (default) or json structured result.text
fuenteYesOne of arcsa, superbancos, seps, ineval, sgr, senescyt, sipa, petroecuador, energia, cne, bvg, bvq, cenace, arconel.
seccionYesA section `id` from list_archivo_secciones.

Output Schema

NameRequiredDescriptionDefault
totalNo
sourceNo
archivosNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.15.0
    • changedInput schema / properties / fuente / description
      Previous value: -"One of arcsa, superbancos, seps, ineval, sgr, senescyt, sipa, petroecuador, energia, cne, bvg, bvq."New value: +"One of arcsa, superbancos, seps, ineval, sgr, senescyt, sipa, petroecuador, energia, cne, bvg, bvq, cenace, arconel."
    • changedInput schema / properties / fuente / enum
      Previous value: -[
      -  "arcsa",
      -  "superbancos",
      -  "seps",
      -  "ineval",
      -  "sgr",
      -  "senescyt",
      -  "sipa",
      -  "petroecuador",
      -  "energia",
      -  "cne",
      -  "bvg",
      -  "bvq"
      -]New value: +[
      +  "arcsa",
      +  "superbancos",
      +  "seps",
      +  "ineval",
      +  "sgr",
      +  "senescyt",
      +  "sipa",
      +  "petroecuador",
      +  "energia",
      +  "cne",
      +  "bvg",
      +  "bvq",
      +  "cenace",
      +  "arconel"
      +]
    • 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. Changed2 schema fields changedv0.12.0
    • changedInput schema / properties / fuente / description
      Previous value: -"One of arcsa, superbancos, seps, ineval, sgr, senescyt, sipa."New value: +"One of arcsa, superbancos, seps, ineval, sgr, senescyt, sipa, petroecuador, energia, cne, bvg, bvq."
    • changedInput schema / properties / fuente / enum
      Previous value: -[
      -  "arcsa",
      -  "superbancos",
      -  "seps",
      -  "ineval",
      -  "sgr",
      -  "senescyt",
      -  "sipa"
      -]New value: +[
      +  "arcsa",
      +  "superbancos",
      +  "seps",
      +  "ineval",
      +  "sgr",
      +  "senescyt",
      +  "sipa",
      +  "petroecuador",
      +  "energia",
      +  "cne",
      +  "bvg",
      +  "bvq"
      +]
  4. Changed3 schema fields changedv0.10.0
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / fuente / description
      Added value: +"One of arcsa, superbancos, seps, ineval, sgr, senescyt, sipa."
    • addedInput schema / properties / seccion / description
      Added value: +"A section `id` from list_archivo_secciones."
  5. Addedv0.8.14

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavior: it returns links rather than file contents, and it explains the 5 MB cap that motivates going around the preview/download tools. Remaining gaps (pagination, behavior for an invalid section id) are minor for a read-only listing.

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 short sentences, zero filler, with the most decision-relevant fact (what it returns) front-loaded and the caveat about file contents and the 5 MB cap second. Nothing could be removed without losing routing information.

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 all three params are described in the schema; the description covers the one thing structure cannot — the link-vs-content distinction. It stops slightly short of complete by not saying what an agent sees when a section id is stale or empty, but that is a small gap for a read-only listing 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 coverage is 100%, so `fuente`, `seccion`, and `format` are already fully documented in the input schema, including the constraint that `seccion` comes from list_archivo_secciones. The description reinforces that linkage but adds no new format hints, defaults, or validation behavior beyond the schema. Baseline 3 is appropriate.

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 ("List the downloadable files") plus the exact scope ("in one section from list_archivo_secciones") and even previews the returned fields (title, URL, format). An agent can immediately tell this apart from the section-listing sibling and from the file-search tools.

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?

Explicitly frames the tool as a link-returning step that depends on list_archivo_secciones, and directs the agent to an alternate path for large files rather than previewing/downloading. It does not name a specific sibling for that download path or cover when to prefer search_archivos, so it falls short of a full when/when-not routing rule.

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