Skip to main content
Glama

Consultar datos de un dataset del INDEC

indec_query_dataset
Read-only

Query any INDEC dataset with PostgREST-style filters, column selection, sorting, and pagination to retrieve official Argentine statistics.

Instructions

Realiza consultas genéricas con filtrado estilo PostgREST sobre cualquier dataset del INDEC. Permite seleccionar columnas (select), filtrar por valores y operadores (eq, neq, gt, gte, lt, lte, like, ilike, in, is), ordenar (order) y paginar con limit (default 50, máx 1000) y offset. Requiere INDEC_API_TOKEN.

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": {
      "dataset": "<dataset>"
    },
    "name": "indec_query_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoCantidad máxima de registros a retornar (default: 50, máx: 1000).
orderNoCriterio de ordenamiento (ej: 'periodo.desc', 'periodo.desc,codigo.asc').
offsetNoCantidad de registros a omitir para paginación (default: 0).
selectNoColumnas específicas a consultar separadas por coma o como array. Si se omite, devuelve todas las columnas.
datasetYesIdentificador del dataset a consultar (ej: 'ipc_nacional', 'canasta-crianza', 'mercado_trabajo_eph')
filtersNoArray de filtros a aplicar. Cada filtro contiene { columna, operador, valor }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With readOnlyHint already declaring a safe read, the description still contributes real operational context: it requires INDEC_API_TOKEN, caps limit at 1000 with a default of 50, and identifies the query dialect as PostgREST. It omits the response shape and pagination metadata, which matters since no output schema exists.

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?

Two tight sentences, front-loaded with the core capability, then the capabilities and the auth requirement. Minor waste in re-listing the default/max of limit and the full operator enum, both of which the schema already carries.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All six parameters are documented and the safety and auth profile is covered, but for a query tool with no output schema the description never indicates what comes back (rows, row count, pagination info) or what happens on an unknown dataset/column — gaps an agent would hit at call time.

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 the schema already documents dataset, select, filters, order, limit and offset. The description largely restates schema content (limit default/max, operator set); only the 'PostgREST-style' framing adds conceptual meaning, so baseline 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?

States a specific verb and resource — generic PostgREST-style filtered queries over any INDEC dataset — and the word 'cualquier' plus 'genéricas' implicitly contrasts it with the per-topic siblings (indec_get_ipc, indec_get_emae). It stops short of naming any sibling explicitly, so differentiation is inferred rather than stated.

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 is implied by the capability list (select/filter/order/paginate over any dataset) and the auth prerequisite, but there is no explicit 'use this instead of indec_get_ipc when…' routing, nor any exclusion such as when to prefer indec_describe_dataset or indec_count_rows first.

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