Skip to main content
Glama

enaho_descargar

Idempotent

Download household survey modules to a local cache and get file paths instead of microdata. Incomplete downloads are automatically re-fetched.

Instructions

Descarga modulos al cache local. NO devuelve microdatos, devuelve rutas.

El cache es idempotente: lo ya descargado e integro se salta. Los ZIP se verifican y los truncados se vuelven a bajar solos, cosa habitual porque el portal del INEI corta conexiones.

Hay un tope de descargas por llamada para no bloquear la sesion con un anio completo. Si pides mas, el error te dice como dividirlo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aniosYesAnios a descargar, por ejemplo [2023] o [2019, 2020].
cortesNoDepartamentos a bajar, en las encuestas que publican un archivo por departamento y ninguno nacional (cenagro, mapa-pobreza). Sin filtro se bajan los 24-25, y cada modulo cuenta como 25 descargas contra el tope por llamada.
forzarNoVuelve a bajar aunque el ZIP ya este en el cache.
formatoNoSTATA por defecto: es el unico que trae etiquetas de variable y de valor. Si el anio no lo publica se cae a SPSS y luego a CSV, y el formato realmente obtenido se reporta.STATA
modulosYesCodigos de modulo: ['01','34'] para hogar+Sumaria, ['02','05','34'] para persona con empleo.
encuestaNoEncuesta del INEI sobre la que operar. Por defecto 'enaho'. Valores: enaho, enaho-panel, endes, enapres, enut, enares, ena, epen-departamentos, epen-ciudades, epen-lima, epe-lima, enapref, enco, cenagro, mapa-pobreza. Cada encuesta tiene sus propias llaves de union y su propio factor de expansion; no se pueden mezclar entre si.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it explains the idempotent cache behavior (skipping already-downloaded complete modules), ZIP integrity verification with automatic redownload of truncated files, and a per-call download limit that returns a divide-the-request error. This goes well beyond the idempotentHint and readOnlyHint annotations, giving the agent a clear model of the tool's side effects and error handling.

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?

The description is remarkably concise: three short paragraphs that front-load the core purpose and return type, then add behavioral details without repetition. Every sentence earns its place, covering idempotency, ZIP verification, and rate limits in a compact way.

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?

Given the 6 parameters, comprehensive schema, output schema, and annotations, the description covers all critical non-schema information: return type (paths), idempotent behavior, ZIP verification, and request limits. The output schema handles return values, so the description does not need to repeat them. The description is complete for a well-documented download tool.

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

Parameters4/5

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

The input schema already provides comprehensive descriptions for all 6 parameters (100% coverage), so the baseline is 3. The description adds meaningful context about the download limit per call, which directly affects how many anios and cortes can be requested, and explains the fallback between formats (STATA→SPSS→CSV) which is referenced in the formato parameter. This adds value beyond the schema.

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?

The description clearly states the tool's function with a specific verb and resource: 'Descarga modulos al cache local.' It also distinguishes itself from siblings by explicitly stating 'NO devuelve microdatos, devuelve rutas,' making it clear this is a download-to-cache tool, not a data retrieval tool.

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?

The description provides clear context for when to use the tool (downloading modules to cache) and what to expect (returns paths, not microdata). It does not explicitly name alternative tools, but the distinction from data-access tools implies when to use it. The idempotent cache behavior and download limit also help the user understand practical usage constraints.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnderMC66/enaho-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server