Install
openclaw skills install fred-api-alRetrieve and cite U.S. and international economic time-series data like GDP, inflation, unemployment, and interest rates from the FRED database.
openclaw skills install fred-api-alFEATURED — Operating manual for an AI agent using the FRED (Federal Reserve Economic Data) MCP server. Read this before answering any economic-data question. Voice is imperative: do exactly what each section says.
fred — Federal Reserve Economic Data skill, paired with the fred-mcp server.
Retrieve, transform, and accurately cite U.S. and international economic time-series from FRED (Federal Reserve Bank of St. Louis): GDP, unemployment, inflation (CPI), interest rates, money supply, employment, exchange rates, and 800,000+ more series. Use this skill to turn a human economic question into precise tool calls and a cited, faithful answer.
Use FRED when the user asks about:
Do not use FRED for:
If FRED is the wrong source, say so and route the user elsewhere rather than forcing a poor answer.
FRED_API_KEY — required, set in the MCP server's environment. The agent never sees, passes, or reveals it. (Optional server vars: FRED_API_BASE_URL, FRED_TIMEOUT_MS, FRED_MAX_RETRIES, LOG_LEVEL.)| Tool | Use it to |
|---|---|
fred_series_search | Find a series_id from keywords. |
fred_series | Read one series' metadata (units, frequency, dates, notes). |
fred_series_observations | Get the actual data points (with transforms). |
fred_category_series | List series in a category. |
fred_release_series | List series in a release. |
fred_request | Reach any other FRED endpoint (generic passthrough). |
See reference/endpoints.md.
series_id, call fred_series_search with specific keywords.popularity and a title that exactly matches the concept.GDP vs GDPC1), seasonally adjusted vs. not (CPIAUCSL vs CPIAUCNS).fred_series before trusting the data.Popular IDs (skip search when these obviously apply): GDP, GDPC1, UNRATE, CPIAUCSL, FEDFUNDS, DGS10, M2SL, PAYEMS, SP500, MORTGAGE30US, T10Y2Y, DEXUSEU. Full table in reference/series-and-units.md.
Call fred_series_observations with:
series_id (required).units — choose the transform that matches the question (Section 9).frequency (+ aggregation_method) — keep native, or down-sample.observation_start / observation_end — the date window (YYYY-MM-DD).sort_order / limit — newest-first and a sensible cap.Fetch a wide range in one call rather than looping. Cache within the session.
units param): lin=level (default) · chg=change · ch1=change vs year ago · pch=% change · pc1=% change vs year ago (YoY — the usual inflation/growth headline) · pca=annualized % rate · cch/cca=continuously compounded · log=natural log. Let FRED compute these — don't do the arithmetic yourself.units from metadata. CPI is an index, not a percent — to report inflation use pc1.realtime_start/realtime_end or /series/vintagedates via fred_request.realtime_start/realtime_end describe the vintage; 9999-12-31 means "still current".See reference/response-fields.md and reference/series-and-units.md.
Always cite. Every figure you report must include:
FRED, series
<ID>, retrieved<YYYY-MM-DD>— <https://fred.stlouisfed.org/series/<ID>>
State the observation date the value refers to, the retrieval date (today), the series ID, and the URL. Cite each series separately in multi-series answers. Template in prompts/citation-generation.md.
last_updated from metadata; flag if data is stale relative to today.sort_order=desc, limit=1), not a cached old value.value is a string — parse before computing; format consistently when displaying."." means the value is missing for that period — skip it, say "not available", never guess.400 (bad key / bad param) → do not retry. Fix it: correct the series_id, date format (YYYY-MM-DD), or enum; if it's the api_key, surface a setup message (never reveal the key).429 (rate limit) → back off, reduce call volume, rely on cache. The server already retries with backoff.See reference/common-errors.md.
FRED is free but limited to ~120 requests/minute per key. Therefore:
FRED data is informational only. Do not present analysis as investment advice, trading signals, or economic forecasts. Add a brief disclaimer when the user edges toward decisions: "This is informational data from FRED, not financial advice."
Before sending an answer, confirm:
series_id (searched/confirmed when unsure).units for the question (e.g. pc1 for YoY inflation)."." handled as missing.recipes/fetch-indicator.md.recipes/year-over-year-change.md.recipes/compare-series.md.pc1.units.reference/ aligned with FRED.reference/endpoints.md and the recipes.Verification needed: confirm tool params, transforms, and limits at https://fred.stlouisfed.org/docs/api/fred/.