Skip to main content
Glama

Inflation table

inflation_table
Read-onlyIdempotent

Use this when the user wants a consumer price index calculator, inflation rate calculator or cpi calculator across many years: a year-by-year table of the annual average CPI-U and the yearly inflation rate, with a CSV download. It uses the bundled published CPI-U series for 1913 through the latest full year, up to 120 years per call. Do not use for a single amount conversion (use adjust_for_inflation), for other countries, for monthly percent changes, or for forecasts.

Input Schema

NameRequiredDescriptionDefault
end_yearYesThe last year of the table, e.g. 2024. At most 120 years after the start year and not after the latest full year.
start_yearYesThe first year of the table, e.g. 1990. 1913 or later.

Output Schema

NameRequiredDescriptionDefault
kindYes
rowsYes
sourceYes
end_yearYes
downloadsYes
rows_shownYes
start_yearYes
latest_yearYes
years_countYes
latest_monthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safety behavior is covered. The description adds useful behavioral context beyond annotations: the bundled CPI-U series coverage from 1913 through the latest full year, the 120-year-per-call limit, and CSV download availability.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the primary use case, followed by data-source and range details, then explicit exclusions. It is dense but every sentence earns its place.

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-only table tool with full schema coverage, annotations, and an output schema, the description is complete enough: it covers purpose, data source, range limits, CSV output, and exclusions.

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%, and both start_year and end_year already document their bounds and the 120-year/latest-full-year constraints. The description reinforces the range and multi-year nature but does not add substantial parameter semantics beyond the schema.

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?

The description states a specific output: a year-by-year table of annual average CPI-U and yearly inflation rate, with CSV download. It also distinguishes the tool from its sibling by naming adjust_for_inflation as the alternative for single-amount conversion.

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 gives explicit when-to-use cases (consumer price index calculator, inflation rate calculator, cpi calculator across many years) and explicit when-not-to-use cases (single amount conversion, other countries, monthly percent changes, forecasts), naming the sibling tool for the single-amount 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