Macro Series + Analysis (FRED)
fred_series"What is / is it high vs history / how has it moved" — ONE FRED series, feature-extracted.
Pass a macro CONCEPT (the server resolves it to the canonical series_id + the right transform) or an exact id.
Returns series (transformed points) + an analysis block: latest (+date — always say as-of-when), trend,
change (vs prior/YoY/window), peak/trough, and 🔑 percentile+z_score vs the window's own history (the
money-shot for "high or low?" — e.g. unemployment 8th pct = historically very low), volatility, a one-line
read. 🔵 transform matters and is auto-picked from the resolved series ("inflation" = pc1 YoY % of a price
index, a rate = lin) — override only deliberately. QUOTE the read; narrate the percentile. Compare two = call
once per concept and diff. A concept that isn't a FRED series (ISM/PMI, a commodity SPOT price → pulse(kind='commodity'))
→ honest no_match, not a fabrication. US-govt series are public domain (_license_note).
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": {
"q": "<q>"
},
"name": "fred_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | A macro CONCEPT (any language — 'inflation', 'core PCE', 'unemployment rate', '10y yield', 'อัตราว่างงาน') OR an exact FRED series_id you already hold (CPIAUCSL). The SERVER resolves a concept → the canonical series + the RIGHT transform (no separate lookup). 🌐 a macro concept is safest in ENGLISH (a native concept may drift). 🔴 Pass the user's FULL request in `context` so the server picks the right VARIANT (headline vs CORE CPI, SA vs NSA, PCE vs CPI). ⛔ ONE concept per call — compare two = call twice + diff. For a NON-US concept put the country in `country`, NOT in this field ('Japanese inflation' → series_id='inflation', country='JP'). | |
| to | No | End — ISO date. Omit → latest. | |
| from_ | No | Start — ISO date or relative window `10y`/`5y`/`qtd` (dynamic, anchored to today). | |
| context | No | OPTIONAL but RECOMMENDED — the user's FULL request VERBATIM (any language). Used to pick the right series VARIANT (headline vs core, SA vs NSA). e.g. 'is US core inflation still sticky?' | |
| country | No | OPTIONAL ISO-2 to bias a CONCEPT to a country's series (JP, DE) — the nationality from the question goes HERE, not in `series_id`. FRED intl coverage is uneven; omit for US (default). | |
| transform | No | FRED units transform — `lin` (level: a rate/ratio) · `pc1` (YoY %: inflation/price index) · `pca` (annualized %: real GDP) · `pch` (period %) · `chg`/`ch1` (abs Δ). Omit → the resolved series' suggested transform. |