Skip to main content
Glama

Inegi Indicator

inegi_indicator
Read-onlyIdempotent

Fetch any INEGI indicator by its numeric id, at a chosen geographic level, escape hatch for the full Banco de Indicadores (GDP, employment/ENOE, economic census, prices, etc.). Returns the latest value (or full history). Find indicator ids with INEGI's "Constructor de consultas" at inegi.org.mx/app/indicadores. NOTE: for Mexico inflation, interest rates, and the peso exchange rate, the banxico pack is usually the better source.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "indicator_id": "1002000001"
    },
    "name": "inegi_indicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoGeographic area: "00" = national (default), "01"-"32" = state (e.g. "09" = Mexico City/CDMX, "07" = Chiapas, "15" = México state), or a 5-digit municipality code (state+municipio).
sourceNoData bank: "BISE" (Banco de Indicadores, default) or "BIE" (Banco de Información Económica, economic time series).
_apiKeyNoOptional, your own free INEGI API token. Omit to use the shared Pipeworx token.
all_historyNoReturn the full time series instead of just the latest observation. Default false.
indicator_idYesINEGI indicator id, e.g. "1002000001" (total population).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — your own free INEGI API token. Omit to use the shared Pipeworx token."New value: +"Optional, your own free INEGI API token. Omit to use the shared Pipeworx token."
    • changedInput schema / properties / area / description
      Previous value: -"Geographic area: \"00\" = national (default), \"01\"–\"32\" = state (e.g. \"09\" = Mexico City/CDMX, \"07\" = Chiapas, \"15\" = México state), or a 5-digit municipality code (state+municipio)."New value: +"Geographic area: \"00\" = national (default), \"01\"-\"32\" = state (e.g. \"09\" = Mexico City/CDMX, \"07\" = Chiapas, \"15\" = México state), or a 5-digit municipality code (state+municipio)."
    • changedInput schema / properties / source / description
      Previous value: -"Data bank: \"BISE\" (Banco de Indicadores, default) or \"BIE\" (Banco de Información Económica — economic time series)."New value: +"Data bank: \"BISE\" (Banco de Indicadores, default) or \"BIE\" (Banco de Información Económica, economic time series)."
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-inegi-api-key",
      -    "indicator_id": "1002000001"
      -  },
      -  {
      -    "_apiKey": "your-inegi-api-key",
      -    "all_history": true,
      -    "area": "Jalisco",
      -    "indicator_id": "1002000001"
      -  }
      -]New value: +[
      +  {
      +    "indicator_id": "1002000001"
      +  },
      +  {
      +    "all_history": true,
      +    "area": "Jalisco",
      +    "indicator_id": "1002000001"
      +  }
      +]
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-inegi-api-key",
      +    "indicator_id": "1002000001"
      +  },
      +  {
      +    "_apiKey": "your-inegi-api-key",
      +    "all_history": true,
      +    "area": "Jalisco",
      +    "indicator_id": "1002000001"
      +  }
      +]
  4. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds that it returns only the latest value by default unless full history is requested, which is useful, but says nothing about rate limits, shared-token throttling, or failure modes for invalid ids.

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 tight sentences, front-loaded with what the tool does, followed by where to get ids and where to go instead. Every sentence carries information, though the parenthetical domain list and trailing NOTE make it slightly dense.

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?

For a read-only tool with no output schema and fully documented parameters, the description covers return shape (latest value or full series), id discovery, and cross-pack routing. Only auth/rate-limit behavior and the inegi_population distinction are left implicit.

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 explains area codes, source enum, _apiKey and all_history; the baseline is 3. The description only restates the geographic-level and latest-vs-history choices at a high level, adding no format or syntax detail beyond the schema.

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?

The description gives a specific verb and resource ("Fetch any INEGI indicator by its numeric id") plus the scope (chosen geographic level, full Banco de Indicadores domain). It differentiates itself as an "escape hatch" for the long tail of indicators, though it never names the obvious sibling inegi_population as the narrower alternative.

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?

It provides clear routing: use the banxico pack for Mexico inflation, interest rates and FX, and use INEGI's Constructor de consultas to find indicator ids. It lacks an explicit exclusion pointing population-style queries to inegi_population, so the when-not guidance is partial rather than complete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.