Skip to main content
Glama

Inflation Calculator API - historical purchasing power across 190+ countries (World Bank CPI)

inflation_calculator
Read-onlyIdempotent

Calculate what an amount of money from one year is worth in another year, cumulative inflation %, average annual inflation rate and year-by-year CPI table for 190+ countries using official World Bank WDI CPI data (CC BY 4.0). Runs on our server, files are deleted right after the call, nothing stored. 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.001/call via x402 at https://radarbg.com/x402/inflation-calculator.

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": {
      "amount": "1000",
      "toYear": 2020,
      "country": "USA",
      "fromYear": 2000,
      "compareCountry": "DEU"
    },
    "name": "inflation_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount of money to adjust, e.g. 10001000
toYearNoEnding year (optional, defaults to latest available CPI year)
countryNoISO-3 country code, e.g. USA, DEU, GBR, FRA, BGRUSA
fromYearYesStarting year, e.g. 2000
compareCountryNoOptional second ISO-3 country code to compare inflation side by side

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnly, openWorld, idempotent) by disclosing the upstream source and license, that computation runs server-side with data deleted after the call, and the concrete access model: 5 calls/day per IP free, X-API-Key for paid, or $0.001/call via x402. It does not describe failure behavior (invalid ISO-3 codes, rate-limit errors) or return shape, so it stops short of full transparency.

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 core purpose is front-loaded in the first clause before the operational details, and the whole thing is four sentences. The pricing URL and tier marketing ('from €9/mo at ...') are somewhat promotional clutter that an agent gains little from, keeping it from a 5.

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?

With no output schema, the description compensates by naming exactly what is returned (adjusted value, cumulative %, average annual rate, year-by-year CPI table). Combined with 100% schema coverage and annotations carrying the safety profile, an agent has what it needs to call this correctly; only error handling is unaddressed.

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 baseline is 3; the schema already documents amount, fromYear, toYear defaulting to latest CPI year, ISO-3 country codes, and compareCountry. The description only adds the '190+ countries' scope and the World Bank source, which weakly informs the country parameters without adding format or behavior detail.

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 ('calculate what an amount of money from one year is worth in another year') and enumerates the outputs (cumulative inflation %, average annual rate, year-by-year CPI table) plus the data source (World Bank WDI CPI). It does not differentiate itself from the sibling 'inflation_cpi_api', which appears to cover overlapping territory, so an agent cannot fully disambiguate from the description alone.

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 only implied by the purpose sentence; there is no explicit when-to-use, when-not-to-use, or pointer to a sibling alternative (notably inflation_cpi_api). The operational notes about free tier and paid access hint at constraints but do not help the agent choose between tools.

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