Skip to main content
Glama

UK inflation calculator

hopi_inflation_calculator
Read-onlyIdempotent

Adjust a money amount for UK inflation. Mode 'cpi' uses the ONS monthly CPI index (2015 = 100) between two months from January 1988 to October 2026 and returns the adjusted value, total change and average annual rate. Mode 'custom' compounds a chosen annual rate over a number of years. Amounts in GBP. Source: https://hopi.co.uk/inflation-calculator/

Input Schema

NameRequiredDescriptionDefault
modeYes'cpi' uses the ONS CPI index between two months; 'custom' uses your own rate
yearsNoCustom mode: number of years (0 to 200)
amountYesThe money amount to adjust
toYearNoCPI mode: ending year (default is the latest year)
toMonthNoCPI mode: ending month (1 to 12, default is the latest month)
fromYearNoCPI mode: starting year (1988 to 2026)
fromMonthNoCPI mode: starting month (1 to 12)
ratePercentNoCustom mode: annual inflation rate as a percentage (-50 to 100)

Output Schema

NameRequiredDescriptionDefault
modeYes
yearsNo
amountYes
summaryYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
ratePercentNo
adjustedValueYes
totalChangePercentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / toMonth / default
      Previous value: -9New value: +10
  2. Changed1 schema field changed
    • changedInput schema / properties / toMonth / default
      Previous value: -8New value: +9
  3. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "adjustedValue",
      +  "amount",
      +  "mode",
      +  "source_url",
      +  "summary",
      +  "totalChangePercent"
      +]
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the bar is lower. The description still adds real context: the ONS CPI series with 2015=100 base, the supported window of January 1988 to October 2026, GBP as the currency, and the data source URL. It does not discuss failure behavior when a CPI month is unavailable, but that is a minor omission.

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?

Three tight sentences, front-loaded with the core action before mode detail, with no filler. The clause listing returned fields (adjusted value, total change, average annual rate) is slightly redundant given an output schema exists, which keeps 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?

For an 8-parameter calculator, the description covers action, both modes, valid date range, currency, and data provenance; the output schema handles return values and annotations handle safety. An agent has everything needed to construct a correct call without opening the source page.

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 coverage is 100%, so the schema already documents every parameter, including the mode enum and the 1988–2026 bounds. The description's main contribution beyond the schema is stating that amounts are in GBP and that the CPI window is fixed to 1988–2026 — the latter largely repeats the schema's min/max. Baseline 3 is appropriate.

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 opens with a precise verb+resource ("Adjust a money amount for UK inflation") and then enumerates the two operating modes ('cpi' via the ONS monthly index, 'custom' via a chosen rate), which is far more specific than its title. It never names or contrasts a sibling such as hopi_compound_interest_calculator, whose 'custom' compounding behavior overlaps, so the agent must infer the boundary.

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?

Mode selection is implied by explaining what each mode does ('cpi' uses the ONS index between two months; 'custom' compounds your own rate), which gives an agent enough to pick a mode. There is no explicit when-to-use/when-not guidance and no routing to an alternative tool for the overlapping custom-compounding case.

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