Skip to main content
Glama

enaho_sondear_llaves

Idempotent

Find candidate keys to merge survey modules when no official keys exist, using data-driven overlap and uniqueness analysis.

Instructions

Descubre como unir dos modulos de una encuesta que nadie ha curado.

Usala cuando enaho_unir_modulos falle porque la encuesta no tiene llaves declaradas. El catalogo del INEI tiene 67 encuestas y solo 15 tienen perfil; para el resto, esto es lo que convierte "no se puede" en "estas son las candidatas y esta es la evidencia".

Descarga los modulos si hace falta y mira los datos reales: cardinalidad de cada columna, unicidad de cada combinacion y, sobre todo, el SOLAPAMIENTO de valores entre los dos archivos, que es la unica prueba de que la union va a emparejar algo.

El resultado sale SIEMPRE con inferido: true. Es inferencia: antes de publicar cifras construidas sobre una llave sondeada hay que contrastarla con el diccionario de la encuesta. Para las encuestas que SI tienen perfil, no uses esto: el conocimiento curado le gana a cualquier heuristica y la respuesta te lo recordara.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anioYes
corteNoDepartamento, en las encuestas que publican por cortes.
modulosYesCodigos de los modulos a unir. Pasa AL MENOS DOS: con uno solo no se puede medir el solapamiento, que es la senal que de verdad dice si una llave sirve.
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 discloses behavioral traits beyond the annotations: it downloads modules if needed ('Descarga los modulos si hace falta'), examines real data characteristics (cardinality, uniqueness, overlap), and always returns `inferido: true`. This adds context about side effects and output semantics that annotations (readOnlyHint=false, idempotentHint=true) do not specify.

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?

The description is longer than the minimal two-sentence example but is front-loaded with purpose and usage. Each sentence provides useful context (when to use, what it does, how to interpret results, when not to use). It is somewhat verbose with stylistic emphasis, but not wasteful.

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?

For a complex inference tool, the description covers the essential decision-making context: why it exists, when to use it, what it does (download and inspect data), what the result always includes (`inferido: true`), and how to validate before publishing. The existence of an output schema means return details don't need to be spelled out. This is complete for the tool's complexity.

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 75%, and the description adds limited parameter-specific meaning beyond what's already in the schema. The `modulos` parameter's need for at least two modules is already described in the schema; the description reinforces it but does not add new semantics for `anio` or `corte`. 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?

The description opens with a clear verb+resource: 'Descubre como unir dos modulos de una encuesta que nadie ha curado' (discover how to join two modules of an uncured survey). It further distinguishes itself from sibling `enaho_unir_modulos` by specifying it is for cases where that tool fails due to missing declared keys, and from profile-based tools by saying curated knowledge wins when a profile exists.

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

Usage Guidelines5/5

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

Explicitly states when to use: 'Usala cuando `enaho_unir_modulos` falle porque la encuesta no tiene llaves declaradas' (use when enaho_unir_modulos fails because the survey has no declared keys). Also gives a clear exclusion: 'Para las encuestas que SI tienen perfil, no uses esto' (for surveys with a profile, don't use this), naming the alternative approach.

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