Skip to main content
Glama

Inflation API - CPI & Economic Indicators by Country, No Key

inflation_cpi_api
Read-onlyIdempotent

Inflation and CPI data by country as JSON, no API key: yearly inflation, CPI index, GDP, GDP growth, GDP per capita, unemployment, population and lending rate for 217 countries (World Bank, CC BY 4.0), plus monthly HICP inflation (yoy, mom, index) for 37 European countries from Eurostat, including the flash estimate. Adjust any amount for inflation between two years or months. Modes: latest, history, monthly, adjust. Monitor mode returns only new periods. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.01/call via x402 at https://radarbg.com/x402/inflation-cpi-api.

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": {
      "mode": "latest",
      "countries": [
        "US",
        "DE",
        "BG"
      ],
      "indicators": [
        "inflation",
        "unemployment"
      ]
    },
    "name": "inflation_cpi_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNolatest = newest yearly value per country and indicator (EU countries also get the newest monthly HICP); history = one row per country and year; monthly = Eurostat HICP per month (EU/EEA/candidate countries); adjust = what an amount from one
amountNoFor adjust: the money amount to convert, e.g. 100. Default 100.
toYearNoFor adjust: the target year. Default the latest year with CPI data.
countryNoFor adjust: one country, e.g. US or Germany. Default US.
endYearNoFor history: last year. Default the latest year with data.
toMonthNoFor adjust with monthly precision (EU countries, HICP index): YYYY-MM.
endMonthNoFor monthly: last month YYYY-MM. Default the newest month.
fromYearNoFor adjust: the year of the original amount. Default 10 years before To year.
countriesNoISO2 (US, DE, BG), ISO3 (USA, BGR) or English names (Germany). Up to 50. Empty = US, DE, GB, JP, BG.
fromMonthNoFor adjust with monthly precision (EU countries, HICP index): YYYY-MM.
indicatorNoFor history: one indicator key, e.g. inflation or gdpGrowth. Default inflation.
startYearNoFor history: first year (1960 or later). Default 10 years ago.
indicatorsNoFor latest: inflation, cpi, gdp, gdpGrowth, gdpPerCapita, unemployment, population, interestRate (or the raw World Bank code, e.g. FP.CPI.TOTL.ZG). Empty = inflation.
startMonthNoFor monthly: first month YYYY-MM. Default 24 months back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already cover safety (readOnly, idempotent, openWorld), but the description adds genuinely useful operational context: a 5 calls/day per IP free tier, two auth paths (X-API-Key or x402 at $0.01/call), data provenance and license. It does not say anything about response size, pagination, or error behavior on quota exhaustion.

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?

Front-loaded with the data scope before modes, coverage, and pricing, so the essential information arrives first. The pricing sentence with two URLs and the €9/mo detail is dense but still task-relevant; overall the paragraph is efficient for the amount of ground it covers.

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 14-parameter, multi-mode tool with no output schema, the description supplies the mode taxonomy, geographic coverage, data sources, and access constraints an agent needs before calling. It stops short of describing the returned JSON shape or per-mode result structure, which matters more here because there is no output schema.

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 every parameter including per-mode applicability and defaults. The description adds only the high-level notion that adjust mode converts amounts across years or months; that is baseline value when the schema does the heavy lifting.

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?

Names the specific resource (inflation and CPI indicators by country) and enumerates exactly which indicators, how many countries (217 World Bank, 37 Eurostat HICP), and in what format (JSON). It also list all four operating modes, giving an agent a precise picture of what the tool does.

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?

The mode enumeration (latest, history, monthly, adjust) tells the agent which call shape to pick for each data need, and the schema's per-parameter 'For history:' / 'For adjust:' notes reinforce this. However, it never disambiguates against an obvious sibling like world_bank_indicators_api, and it mentions a 'Monitor mode' that is absent from the stated mode list.

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.

Resources