Get Cpi
get_cpiCurrent US inflation rate (CPI year-over-year) and Consumer Price Index history for All Urban Consumers, US city average, all items. Returns monthly index values with computed yoy_inflation_pct per month plus a latest summary carrying BOTH adjustments, answers "what is the latest inflation rate" and "what is the current CPI-U index level" directly. Defaults to the not-seasonally-adjusted index CUUR0000SA0, the series BLS headlines; pass seasonally_adjusted: true for the seasonally adjusted index CUSR0000SA0 (the FRED CPIAUCSL series). The two differ by roughly a point, so the answer states which one it used.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"seasonally_adjusted": true
},
"name": "get_cpi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _apiKey | No | Optional BLS registration key (free, raises the daily cap from ~25 to 500). The gateway supplies a platform key; pass your own only to override. | |
| end_year | No | End year as 4-digit string (e.g. "2024"). Optional. | |
| start_year | No | Start year as 4-digit string (e.g. "2020"). Optional. | |
| seasonally_adjusted | No | true returns the seasonally adjusted CPI-U index (BLS series CUSR0000SA0, same series as FRED CPIAUCSL); false or omitted returns the not-seasonally-adjusted index (CUUR0000SA0), which is the series BLS headlines and the basis of the published year-over-year inflation rate. Set it to true when the question says seasonally adjusted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Monthly CPI data | |
| unit | Yes | Unit of measurement (index 1982-84=100) | |
| total | Yes | Number of data points returned. Equal to `returned`, BLS returns every point in the requested year range. | |
| latest | No | Most recent observation, carrying BOTH seasonal adjustments so the caller can tell which number answers their question. Absent when the range returned no usable data points. | |
| end_year | Yes | End year filter if provided, null otherwise | |
| returned | No | How many data points are in `data`. Always equal to `total` here; stated so a caller need not assume it. | |
| series_id | Yes | BLS series ID actually used, CUUR0000SA0 (not seasonally adjusted) or CUSR0000SA0 (seasonally adjusted) | |
| start_year | Yes | Start year filter if provided, null otherwise | |
| description | Yes | Series description, naming the seasonal adjustment used | |
| observation_order | No | Order of the `data` array. BLS returns each series newest-first. | |
| seasonally_adjusted | Yes | Whether the returned series is seasonally adjusted (CUSR0000SA0) or not (CUUR0000SA0) |