Skip to main content
Glama

Series internacionales con datos de Ecuador (WDI, IRENA, Ember, XM, Comtrade, FMI, OMS, OIT, ACNUR)

get_serie_internacional
Read-only

Retrieve international time-series data for Ecuador from World Bank, IRENA, Ember, IMF, UN Comtrade, WHO, ILO and UNHCR, with source-specific indicators, dates and optional JSON output.

Instructions

International series for Ecuador via fuente: wdi (World Bank), irena (electricity), ember (monthly power mix), xm (Colombia-Ecuador flows), comtrade (UN bilateral trade), imf (IMF SDMX), who (health), ilo (ILOSTAT labour), unhcr (refugees/asylum). Without indicador/flow, wdi/who/imf/ilo list their catalog (set query).

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": {
      "fuente": "<fuente>"
    },
    "name": "get_serie_internacional"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmdNocomtrade only: TOTAL or an HS code of 2, 4 or 6 digits.TOTAL
paisNowdi/irena/who/imf/ilo/unhcr: ISO3 code (irena also accepts the English name).ECU
tipoNoirena only: generacion (GWh), capacidad (MW) or ambos.ambos
claveNoimf/ilo only: SDMX key, dot-separated (ECU.CPI._T.IX.M).
desdeNoStart: a year (AAAA) for wdi/irena/who/unhcr (ember: AAAA or AAAA-MM), a date (AAAA-MM-DD) for xm, a period (AAAA, AAAA-MM) for imf/ilo.
flujoNocomtrade only: X (exports), M (imports) or ambos.ambos
hastaNoEnd, same format as desde.
limitNocatalog/flow listings only: maximum rows (1-200).
queryNowdi/who/imf/ilo/ember: catalog search text, used when indicador is empty.
socioNocomtrade: partner as ISO3 (USA, CHN, COL, PER, PAN, ESP, NLD, ITA...) or M49 number; empty = 0 (World).
formatNotext summary (default) or json structured result.text
fuenteYeswdi, irena, ember, xm, comtrade, imf, who, ilo or unhcr.
periodoNocomtrade only: one period, AAAA (frecuencia A) or AAAAMM (frecuencia M).
sentidoNoxm only: exportaciones (Colombia to Ecuador) or importaciones (Ecuador to Colombia).exportaciones
ultimosNoimf/ilo only: last N observations per series.
conexionNoirena only: All, On-grid or Off-grid.All
indicadorNowdi/who: indicator code.
agregacionNoxm only: dia or mes.dia
frecuenciaNocomtrade and ember: A (annual) or M (monthly).A
tecnologiaNoirena only: technology label substring (solar, hydro, Total Renewable...).

Output Schema

NameRequiredDescriptionDefault
sourceNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.15.0
    • changedInput schema / properties / desde / description
      Previous value: -"Start: a year (AAAA) for wdi/irena/who/unhcr, a date (AAAA-MM-DD) for xm, a period (AAAA, AAAA-MM) for imf/ilo."New value: +"Start: a year (AAAA) for wdi/irena/who/unhcr (ember: AAAA or AAAA-MM), a date (AAAA-MM-DD) for xm, a period (AAAA, AAAA-MM) for imf/ilo."
    • changedInput schema / properties / frecuencia / description
      Previous value: -"comtrade only: A (annual) or M (monthly)."New value: +"comtrade and ember: A (annual) or M (monthly)."
    • changedInput schema / properties / fuente / description
      Previous value: -"wdi, irena, xm, comtrade, imf, who, ilo or unhcr."New value: +"wdi, irena, ember, xm, comtrade, imf, who, ilo or unhcr."
    • changedInput schema / properties / fuente / enum
      Previous value: -[
      -  "wdi",
      -  "irena",
      -  "xm",
      -  "comtrade",
      -  "imf",
      -  "who",
      -  "ilo",
      -  "unhcr"
      -]New value: +[
      +  "wdi",
      +  "irena",
      +  "ember",
      +  "xm",
      +  "comtrade",
      +  "imf",
      +  "who",
      +  "ilo",
      +  "unhcr"
      +]
    • changedInput schema / properties / query / description
      Previous value: -"wdi/who/imf/ilo: catalog search text, used when indicador is empty."New value: +"wdi/who/imf/ilo/ember: catalog search text, used when indicador is empty."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "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. Changed14 schema fields changedv0.12.0
    • addedInput schema / properties / clave
      Added value: +{
      +  "default": "",
      +  "description": "imf/ilo only: SDMX key, dot-separated (ECU.CPI._T.IX.M).",
      +  "type": "string"
      +}
    • addedInput schema / properties / cmd
      Added value: +{
      +  "default": "TOTAL",
      +  "description": "comtrade only: TOTAL or an HS code of 2, 4 or 6 digits.",
      +  "type": "string"
      +}
    • changedInput schema / properties / desde / description
      Previous value: -"Start: a year (AAAA) for wdi/irena, a date (AAAA-MM-DD) for xm."New value: +"Start: a year (AAAA) for wdi/irena/who/unhcr, a date (AAAA-MM-DD) for xm, a period (AAAA, AAAA-MM) for imf/ilo."
    • addedInput schema / properties / flujo
      Added value: +{
      +  "default": "ambos",
      +  "description": "comtrade only: X (exports), M (imports) or ambos.",
      +  "type": "string"
      +}
    • addedInput schema / properties / frecuencia
      Added value: +{
      +  "default": "A",
      +  "description": "comtrade only: A (annual) or M (monthly).",
      +  "enum": [
      +    "A",
      +    "M"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / fuente / description
      Previous value: -"wdi, irena or xm."New value: +"wdi, irena, xm, comtrade, imf, who, ilo or unhcr."
    • changedInput schema / properties / fuente / enum
      Previous value: -[
      -  "wdi",
      -  "irena",
      -  "xm"
      -]New value: +[
      +  "wdi",
      +  "irena",
      +  "xm",
      +  "comtrade",
      +  "imf",
      +  "who",
      +  "ilo",
      +  "unhcr"
      +]
    • changedInput schema / properties / indicador / description
      Previous value: -"wdi only: WDI code."New value: +"wdi/who: indicator code."
    • changedInput schema / properties / limit / description
      Previous value: -"wdi catalog search only: maximum indicators (1-200)."New value: +"catalog/flow listings only: maximum rows (1-200)."
    • changedInput schema / properties / pais / description
      Previous value: -"wdi/irena: ISO3 code (irena also accepts the English name)."New value: +"wdi/irena/who/imf/ilo/unhcr: ISO3 code (irena also accepts the English name)."
    • addedInput schema / properties / periodo
      Added value: +{
      +  "default": "",
      +  "description": "comtrade only: one period, AAAA (frecuencia A) or AAAAMM (frecuencia M).",
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"wdi only: catalog search text, used when indicador is empty."New value: +"wdi/who/imf/ilo: catalog search text, used when indicador is empty."
    • addedInput schema / properties / socio
      Added value: +{
      +  "default": "",
      +  "description": "comtrade: partner as ISO3 (USA, CHN, COL, PER, PAN, ESP, NLD, ITA...) or M49 number; empty = 0 (World).",
      +  "type": "string"
      +}
    • addedInput schema / properties / ultimos
      Added value: +{
      +  "default": 0,
      +  "description": "imf/ilo only: last N observations per series.",
      +  "type": "integer"
      +}
  4. Addedv0.11.0

TDQS

A3.9/5.0
Behavior4/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 safety is covered. The description adds genuine behavior beyond them: the dual mode (data retrieval vs. catalog listing) and the fact that catalog mode is triggered by leaving indicador/flow empty and driven by `query`. It does not disclose rate limits, upstream auth needs, or what an empty result looks like, which keeps it from a 5.

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?

Two sentences with no padding; the source enumeration is front-loaded directly after the purpose statement and the fallback/catalog rule is placed last where it reads as a secondary mode. Every clause carries information an agent needs to route the call.

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 20-parameter, nine-source router with an output schema and full annotation coverage, the description supplies the source list and the catalog-vs-data mode switch an agent must know. It leaves unspecified the default date window behavior and per-source failure modes, minor gaps given that the output schema documents returns and the schema documents each parameter.

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?

Schema coverage is 100%, so the baseline is 3; the description earns more by explaining a cross-parameter interaction the schema only implies per-field – that empty indicador/flow switches wdi/who/imf/ilo into catalog-listing mode where `query` applies. It also frames the source→parameter fan-out (irena electricity, ember monthly power mix, xm flows, comtrade bilateral trade) that an agent needs to pick the right `fuente` before touching 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 names the resource (international series for Ecuador), the routing parameter `fuente`, and enumerates all nine upstream sources with brief parentheticals (World Bank, IMF SDMX, ILOSTAT, etc.), which lets an agent distinguish this from national-source siblings such as get_bce_iem_table or get_inec_estadistica_files. It stops short of an explicit verb like 'fetch/return' and never states the sibling boundary outright, so it is clear but not maximally differentiated.

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?

The only usage steer is 'Without indicador/flow, wdi/who/imf/ilo list their catalog (set query)', which tells the agent how to enter catalog-discovery mode. There is no explicit when-to-use-this-vs-another-tool guidance, no prerequisites, and no statement of when a different tool (e.g. a BCE or INEC series tool) would be the better pick.

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