Skip to main content
Glama

Inflation rate by country: consumer prices, annual % (World Bank)

econ_inflation
Read-only

Inflation rate of any country: annual % change in consumer prices (CPI) from World Bank data, for the last 1-10 years with the newest year first. Country by ISO code (SE, SWE) or English name. Read from a committed World Bank Open Data snapshot (CC BY 4.0), so every call answers at once; the snapshot date is in the answer. Use for real-return, pricing and macro questions. Example: country=SE. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "country": "<country>"
    },
    "name": "econ_inflation"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoYears of history to return, 1-10 (default 5)
countryYesISO 3166 code (SE, SWE) or English country name (Sweden)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / years / maximum
      Previous value: -9007199254740991New value: +10
    • changedInput schema / properties / years / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only/no-destroy safety, but the description adds material context they do not: reads come from a committed World Bank snapshot (so responses are instant), the snapshot date is included in the answer, and results are ordered newest year first. It also discloses cost behavior ($0.01/call via x402 or card key, first 10 free, failed calls free, repeats not free), which is exactly the kind of operational fact an agent cannot infer from structured fields.

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?

Purpose is front-loaded in the first clause and every sentence carries information (data source, ordering, usage, identifiers, pricing). It is dense rather than padded, though the pricing and payment-mechanics clause is long enough to slightly blur the core action.

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?

For a two-parameter read tool with no output schema, the description covers data source and license, freshness (snapshot date in answer), latency, ordering, identifier forms, and cost. Nothing an agent needs to invoke it correctly or budget for it is missing.

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%, with both 'country' and 'years' documented including ranges and defaults, so the schema does the heavy lifting. The description reinforces the accepted identifier forms (SE, SWE, or English name) and the output ordering but adds no format or validation detail beyond the schema; baseline 3 applies.

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?

States a specific verb and resource ('Inflation rate of any country: annual % change in consumer prices (CPI) from World Bank data'), plus scope (last 1-10 years, newest first) and accepted country identifiers. An agent can distinguish this from econ_gdp, econ_population or econ_unemployment without opening any schema.

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?

Gives concrete usage contexts ('real-return, pricing and macro questions') and a worked example (country=SE), which is clear positive guidance. It does not name when to prefer a sibling or an exclusion case, so it stops short of a 5.

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