Skip to main content
Glama

econ_inflation_calc

Read-only

Inflation calculator (any country) — What an amount of money from one year is worth in another year, using the official consumer price index for any country: equivalent amount, cumulative and average annual inflation, purchasing-power change, and the highest and lowest inflation years in the range. Source: World Bank CPI (CC BY 4.0). Price: $0.002 USDC (Base, via x402).

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": {
      "amount": "<amount>",
      "from": "<from>"
    },
    "name": "econ_inflation_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNooptional year (default latest available)
fromYesyear, e.g. 1990
amountYese.g. 100
countryNoISO2 or ISO3, default US

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower. The description nonetheless adds genuinely useful context beyond the annotations: the World Bank CPI data source and license, the invocation price ($0.002 USDC via x402, which matters for cost-aware agents), and an enumeration of returned metrics since no output schema exists.

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?

One front-loaded sentence establishes purpose and computation, followed by short source and price notes. The output-metric list is long but earns its place given the absence of an output schema; there is no filler or repeated phrasing.

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 four-parameter calculator with no output schema, the definition covers purpose, data provenance, cost, and return contents well. It stops short of stating year-range limits or behavior for invalid country/year inputs, which would complete the picture for a paid tool.

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 documents amount, from, to, and country (including defaults). The description adds no per-parameter syntax or constraints beyond what is in the schema, so the 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 calculator (any country)') and immediately defines the computation: what an amount of money from one year is worth in another, based on official CPI. That is clearly distinguishable from the sibling finance_invest_calc and finance_loan_calc tools, which compute returns/loan payments rather than CPI-adjusted value.

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 description implies the use case (converting a monetary amount across years) and notes 'any country' with a default of US, but it never states when to pick this over econ_compare_countries or econ_country_snapshot, nor any when-not conditions. For a self-evident calculator this is adequate but not explicit routing guidance.

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