Get historical CPI observations
economics_get_cpi_historyCPI by period. index_base is sent once at the top; each period has its value. For only the newest value use economics_get_cpi. as_of (YYYY-MM-DD) reads the series as published up to the end of that UTC day, with the derived measures of the same release; version=first_reported gives the first value stored for each period, with first_reported_at. Send one, not both. When source is present, the data came through a distributor and released_on is the distributor's publication date, not the original publisher's release date.
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": {
"country": "<country>"
},
"name": "economics_get_cpi_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Last period or day to return, inclusive: `YYYY`, `YYYY-MM` or `YYYY-Q1` (for example `2025`, `2025-06`, `2025-Q2`). Leave out for no upper bound. | |
| as_of | No | Return the series as published up to the end of this UTC day, with the derived measures (inflation, GDP growth) of that same release. Not combined with version. | |
| limit | No | Most rows to return in one answer. Default 100, max 1000. | |
| start | No | First period or day to return, inclusive: `YYYY`, `YYYY-MM` or `YYYY-Q1` (for example `2025`, `2025-06`, `2025-Q2`). Leave out for no lower bound. | |
| cursor | No | Paging token. Leave out for the first page; to read the next one, pass the previous answer's `next_cursor` back unchanged with the same other arguments. | |
| country | Yes | Country as a three-letter ISO 3166-1 code in capitals, for example `USA`, `IDN` or `JPN`. | |
| version | No | first_reported returns the first value Narwhal stored for each period, with first_reported_at. Not combined with as_of. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | When the source last updated the newest observation on this page. | |
| start | No | Never sent: every account gets the full history. | |
| source | No | Present only when a distributor, not the original publisher, supplies the data. | |
| country | Yes | ||
| frequency | No | Present, as annual, only when the figures are yearly (the World Bank fallback). Periods are then YYYY and each value is the average of the year's monthly indices. | |
| index_base | Yes | Base period and base value of the index, for example 1982-84=100. | |
| next_cursor | Yes | ||
| observations | Yes |