Fred Get Series
fred_get_seriesAUTHORITATIVE historical time-series for US economic indicators (plus OECD/IMF international series by ID) from FRED (Federal Reserve Bank of St. Louis, the official US macroeconomic data repository, 800k+ series). Every series is an AGGREGATE for a whole country, state, or METROPOLITAN AREA (e.g. the Phoenix or Oklahoma City metro), reported monthly or quarterly. Pass a series ID like "MORTGAGE30US" (30y mortgage rate), "UNRATE" (unemployment), "CPIAUCSL" (CPI), "GDP", "GDPNOW" (the Atlanta Fed GDPNow running estimate of current-quarter real GDP growth, percent annualized, quarterly), "FEDFUNDS" (Fed funds rate), "DTWEXBGS" (Nominal Broad U.S. Dollar Index, the trade-weighted dollar, daily), "HOUST" (housing starts), "RHORUSQ156N" (US homeownership rate, the percent of households that OWN their home, distinct from the mortgage interest rate), "ICSA" (weekly initial jobless/unemployment claims, filed with state agencies and published by the Labor Department, a FRED series only, BLS does not carry it) and "CCSA" (continued claims), "BAA" (Moody's Baa corporate bond yield, monthly; "DBAA" is the daily series), "IR" (US import price index, all commodities, monthly). Returns dates + values + the indicator's units. Use for macro, Fed, and metro-level US indicator questions. Also holds OECD, IMF and other international series under their own IDs, for example "CPALTT01INM659N" (India consumer price index, growth over the same month a year earlier, OECD-sourced) and "INDCPIALLMINMEI" (India CPI index level). Those IDs follow no pattern you can derive from a US one: a guessed ID such as "DEUUNRATE", "JPNUNRATE" or "CANUNRATE" 400s with "the series does not exist", so call fred_search with the country and the measure to get the real ID. For a cross-country panel of one indicator, worldbank_get_indicator (ISO country code + indicator, e.g. SL.UEM.TOTL.ZS for unemployment) is the broader alternative.
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": {
"series_id": "MORTGAGE30US"
},
"name": "fred_get_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ALFRED vintage query: return the data as it was PUBLISHED on this date (YYYY-MM-DD), before any later revisions. Shorthand for realtime_start=realtime_end=as_of. Omit for the default: today's latest-revised values (unchanged from before this parameter existed). | |
| limit | No | Max observations, newest first (1-100000, default 20) | |
| units | No | Data transformation (the response `units` then names the transformed unit and `series_units` keeps the series' own): lin (levels), chg (change), ch1 (change from year ago), pch (% change), pc1 (% change from year ago), pca (compounded annual rate of change), cch (continuously compounded rate of change), cca (continuously compounded annual rate of change), log (natural log). Default: lin | |
| _apiKey | Yes | FRED API key | |
| end_date | No | Alias of observation_end. | |
| frequency | No | Frequency aggregation (optional). Codes: d, w, bw, m, q, sa, a, English words also accepted (daily/weekly/biweekly/monthly/quarterly/semiannual/annual). | |
| series_id | Yes | FRED series ID (e.g., "MORTGAGE30US", "HOUST", "CSUSHPISA") | |
| sort_order | No | Observation order: desc = newest first (default), asc = oldest first. | |
| start_date | No | Alias of observation_start. | |
| realtime_end | No | ALFRED vintage query: end of the realtime (publication) window, YYYY-MM-DD. See realtime_start. | |
| realtime_start | No | ALFRED vintage query: start of the realtime (publication) window, YYYY-MM-DD. Use with realtime_end for a custom vintage range; use `as_of` for the common single-date case. Omit for the default latest-revised behavior. | |
| observation_end | No | End date in YYYY-MM-DD format (optional) | |
| observation_start | No | Start date in YYYY-MM-DD format (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present when the list was truncated or an empty request window was widened. | |
| count | Yes | Total observations FRED holds for the requested window, NOT the number returned; compare with `returned`. | |
| units | No | Unit of the returned values. The series' own unit when `units` was lin or omitted; otherwise the transformed unit (e.g. 'Percent change from year ago' for pc1). | |
| vintage | No | Present only when the caller passed as_of/realtime_start/realtime_end. The resolved vintage query. | |
| returned | No | How many observations are actually in `observations` (capped by `limit`, default 20). | |
| frequency | No | Publication frequency of the series. | |
| series_id | Yes | The requested FRED series ID | |
| truncated | No | True when `returned` is less than `count`, raise `limit` to see the rest. | |
| observations | Yes | Array of date-value pairs | |
| series_title | No | Series title from FRED metadata. | |
| series_units | No | The series' own level unit from FRED metadata. Present only when the values were transformed, since `units` then names the transformation. | |
| requested_end | No | The observation_end the caller passed, echoed back. Absent when the caller passed none. | |
| observation_end | No | Last date this series actually covers, from FRED's series metadata. | |
| requested_start | No | The observation_start the caller passed, echoed back. Absent when the caller passed none. | |
| units_requested | No | The transformation code applied (lin, chg, ch1, pch, pc1, pca, cch, cca, log). Absent when the caller passed none. | |
| observation_order | No | Order of the `observations` array. Defaults to newest_first; pass sort_order:'asc' for oldest_first. | |
| observation_start | No | First date this series actually covers, from FRED's series metadata. |