Skip to main content
Glama

Adjust for inflation

adjust_for_inflation
Read-onlyIdempotent

Use this when the user asks a us inflation calculator question, for example what is $100 worth today, the value of money over time, or a dollar inflation calculator, buying power calculator or consumer price index calculator request for US dollars. It converts one US dollar amount between two periods with the published CPI-U index and returns the adjusted amount, both index values, the cumulative inflation, the average annual rate, and the buying-power change. It works for published periods from 1913-01 to the latest bundled month, year or YYYY-MM inputs, and amounts greater than zero up to one trillion dollars including fractional cents; only the output is rounded to cents. Do not use for other countries, for regional or core CPI, for forecasts, or for financial advice.

Input Schema

NameRequiredDescriptionDefault
toYesThe to period as a year such as 1990, or a year and month such as 1990-06. 1913-01 or later and not after the latest published month.
fromYesThe from period as a year such as 1990, or a year and month such as 1990-06. 1913-01 or later and not after the latest published month.
amountYesThe amount of US dollars to adjust, e.g. 100, 1234.56 or 1.005. Greater than zero and no more than 1,000,000,000,000; fractional cents are accepted and only the result is rounded to cents.

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
kindYes
yearsYes
amountYes
cpi_toYes
sourceYes
cpi_fromYes
cpi_to_textYes
latest_monthYes
cpi_from_textYes
cpi_to_periodYes
cumulative_pctYes
adjusted_amountYes
cpi_from_periodYes
average_annual_pctYes
adjusted_amount_textYes
buying_power_change_pctYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description still adds substantive behavior: the exact output components (adjusted amount, both index values, cumulative inflation, average annual rate, buying-power change), the operable period window 1913-01 to the latest bundled month, and the rule that only the output is rounded to cents. That is real context the annotations cannot convey.

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 trigger conditions are front-loaded and the negative list closes the paragraph cleanly. The middle clause stacking several SEO-style phrasings ("us inflation calculator", "dollar inflation calculator", "buying power calculator", "consumer price index calculator") is somewhat padded but each still serves intent matching.

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?

A three-required-parameter tool with a full output schema needs coverage of inputs, bounds, period range, and exclusions — all present. Nothing an agent needs in order to call it correctly, or to know when not to call it, is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning by stating accepted input formats (year or YYYY-MM), the dollar-amount ceiling with fractional cents, and the rounding contract. It is largely a restatement of the schema constraints rather than a 5-level elaboration, so it lands just above baseline.

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 names a specific verb and resource ("converts one US dollar amount between two periods with the published CPI-U index") and fixes the scope to US CPI-U. It never names the sibling inflation_table, so an agent must infer the boundary between a point-to-point conversion and a tabular listing, which keeps it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It enumerates concrete user phrasings that should trigger the tool ("what is $100 worth today", "buying power calculator", "consumer price index calculator") and gives an explicit negative list: other countries, regional or core CPI, forecasts, financial advice. An agent has no ambiguity about when to route here versus declining.

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