Skip to main content
Glama

Descargar microdatos de una encuesta ANDA

download_anda_microdata
Read-only

Retrieves download or access links for ANDA survey microdata by survey idno, showing access type and research-use terms; check survey info first.

Instructions

Links to an ANDA survey's microdata, with tipo_acceso (directo, enlace_externo, registro, solicitud, ninguno); accepts ANDA's research-use terms. External links point to other INEC sites. Check get_anda_survey_info first.

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": {
      "idno": "<idno>"
    },
    "name": "download_anda_microdata"
  }
}

Input Schema

NameRequiredDescriptionDefault
idnoYesSurvey idno or numeric id from search_anda (the "idno" or "id" field)
formatNotext summary (default) or json structured result.text

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.12.0
    • changedInput schema / properties / idno / description
      Previous value: -"Survey identifier from search_anda (the \"idno\" field)"New value: +"Survey idno or numeric id from search_anda (the \"idno\" or \"id\" field)"
  4. Changed2 schema fields changedv0.10.0
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / idno / description
      Added value: +"Survey identifier from search_anda (the \"idno\" field)"
  5. Changed4 schema fields changedv0.8.14
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / idno / title
      Removed value: -"Idno"
    • removedInput schema / title
      Removed value: -"download_anda_microdataArguments"
    • removedOutput schema / title
      Removed value: -"download_anda_microdataDictOutput"
  6. First observedv0.8.12

TDQS

A3.6/5.0
Behavior3/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 known. The description adds useful context beyond that: it discloses that access depends on tipo_acceso and that results may point to external INEC sites, which lines up with openWorldHint=true. It does not explain what 'registro'/'solicitud' mean in practice or what happens for 'ninguno', leaving the access and consent behavior partly opaque.

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?

Three short sentences, no padding, with the access-type summary and the external-link caveat front-loaded before the prerequisite. Slightly dense in the parenthetical enum list, but every clause carries 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 not be explained, and the description still flags the key result dimension (tipo_acceso) plus the prerequisite tool call. Combined with annotations covering safety, an agent has enough to invoke it correctly; only the download-versus-link ambiguity is a residual gap.

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% - idno and format are fully documented in the schema, including the enum and default. The description's mention of tipo_acceso refers to a result field, not an input parameter, and it adds nothing about idno's accepted formats or the text/json switch, so baseline 3 is appropriate.

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?

States a concrete action and resource: it returns links to an ANDA survey's microdata, and enumerates the tipo_acceso outcomes (directo, enlace_externo, registro, solicitud, ninguno). This is more than a restatement of the name. Minor ambiguity remains because the tool is named 'download_' but the description says it returns 'links', so an agent cannot be sure whether files are fetched or only referenced.

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?

Gives an explicit prerequisite - 'Check get_anda_survey_info first' - and defines the adoption context ('accepts ANDA's research-use terms'). It does not, however, explain when to prefer download_resource or get_inec_estadistica_files, so sibling routing beyond the one named tool is left implicit.

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