Skip to content

Public documentation

Product version
0.5.0
Docs revision
r0
State
Current · released
Deployment
not-deployed
Source
v0.5.0 · e2d18656f5e4

Documented release is not yet live

Economic Data

Economic Data MCP tools

v0.5.0e2d1865

This is the complete reference for the Economic Data tools in version 0.5.0. Seven tools are exposed, and all seven are documented here. They are reached through the single Mercury MCP endpoint described in the Economic Data overview.

Most tools offer two response formats:

  • format="toon" (default): a compact pipe-delimited table whose header declares the row count and the field order, followed by one row per record. It is the right default for an agent reading a result into its context.
  • format="json": a list of objects with the same fields, for code that parses or aggregates values.

A value that is not available yet is an empty cell in TOON output. That is how "not released yet" appears, and it is never a zero.

Some tools return a string beginning with error: instead of failing the call, so check the shape of what came back rather than assuming a successful call returned data.

get_economic_events

Economic calendar events with actual, forecast and previous values: what was scheduled, what the market expected, and what printed.

ParameterTypeDefaultMeaning
time_rangestring"today"One of today, yesterday, tomorrow, this_week, last_week, next_week.
countrieslist or string"all"Country names, or "all". Names must be lowercase.
importancelistnoneAny combination of low, medium, high. Omit for all levels.
fieldslistnoneSubset of fields to return. Omit for the default schema.
limitint50Maximum events to return.
formatstring"toon""toon" or "json".

The calendar covers thirteen economies. Use these values in countries:

Economy`countries` value
United Statesunited states
Euro Areaeuropean union
United Kingdomunited kingdom
Germanygermany
Francefrance
Italyitaly
Spainspain
Switzerlandswitzerland
Japanjapan
Chinachina
Australiaaustralia
New Zealandnew zealand
Canadacanada

Selectable fields: event_date, release_date, date, event_time, release_time, time, event_zone, release_timezone, country, currency, importance, event_name, name, actual, forecast, previous, updated_at. The preferred and the older spellings of the date, time and name fields are both returned, so a client may read either.

Default TOON schema: release_date, release_time, country, importance, event_name, actual, forecast, previous, currency.

text
event[2]{release_date|release_time|country|importance|event_name|actual|forecast|previous|currency}:
2026-03-05|08:30|united states|high|Nonfarm Payrolls|256K|200K|227K|USD
2026-03-05|13:00|germany|medium|CPI (YoY)||2.3%|2.5%|EUR

Watch out: countries is case-sensitive. ["United States"] returns no results, silently.

text
High-importance US and Euro Area events this week:
time_range="this_week", countries=["united states", "european union"], importance=["high"]

get_economic_history

The historical series. This tool returns realized numeric actuals; forecasts and previous values live in the calendar, through get_economic_events.

ParameterTypeDefaultMeaning
indicator_namestringnonePartial match on the canonical name, e.g. "CPI (YoY", "Nonfarm Payrolls", "Germany CPI YoY".
series_idstringnoneNative series identifier, e.g. "CUUR0000SA0".
sourcestringnoneBLS, BEA or FRED (case-insensitive). When set, source_policy is ignored.
categorystringnoneinflation, employment, gdp, income, productivity.
calc_typestringnonelevel, yoy, mom, qoq, qoq_annualized.
start_datedatenoneLower bound, YYYY-MM-DD. Preferred.
end_datedatenoneUpper bound, YYYY-MM-DD. Preferred.
date_fromdatenoneDeprecated alias for start_date.
date_todatenoneDeprecated alias for end_date.
fieldslistnoneSubset of fields to return.
limitint200Maximum rows to return.
source_policystring"best"Which history tier to read: best, all, official or calendar. Applies only when source and series_id are omitted.
formatstring"toon""toon" or "json".

Selectable fields: series_id, source, indicator_name, category, relevance, unit, calc_type, frequency, event_date, reference_date, date, value.

Default TOON schema: reference_date, indicator_name, calc_type, value, unit, source.

text
history[2]{reference_date|indicator_name|calc_type|value|unit|source}:
2025-01-01|CPI (YoY, NSA)|yoy|2.90|percent|BLS
2025-02-01|CPI (YoY, NSA)|yoy|2.80|percent|BLS

The two history tiers

The history holds an official tier and a calendar tier, and source_policy chooses between them.

`source_policy`Returns
bestOfficial rows, plus calendar-tier rows only where no official row exists for the same indicator and period. The default.
allEvery row from both tiers, so the same period can appear twice.
officialThe official US tier only.
calendarThe calendar tier only.

The official tier is US statistical history, and the source column on each row says where it comes from:

`source`What it holds
BLSUS labour statistics: consumer and producer prices, employment, wages, job openings, productivity.
BEAUS national accounts: GDP, PCE, the PCE price index, personal income.
FREDSeries from the St. Louis Fed database, carrying both the first-released and the revised value.

The calendar tier covers all thirteen economies on the calendar. It is built from the actual figures the calendar records at each release, reaches back to 2013, and is provisional: it keeps the number as it was released and is not revised. Its rows carry the calendar tier's own source code, and you reach them with source_policy="calendar" or "all" rather than through source.

In format="json", a row also carries value_initial, the first released value, and value_current, the latest revised value. Official series with revision history fill both, so a series can be read as "what was known at the time" or "what the series says now". Calendar-tier rows carry the released value and leave value_current empty.

Indicator names

Official US series keep canonical names of the form "{Description} ({calc_type}, {adjustment})", such as "CPI (YoY, NSA)" or "Unemployment Rate (SA)". Calendar-tier names for other economies are prefixed with the country, such as "Germany CPI YoY" or "China NBS Manufacturing PMI". Use list_economic_history_catalog to find the exact name before relying on a partial match.

text
US CPI year-over-year for the last two years:
indicator_name="CPI (YoY", start_date="2023-01-01"
All inflation series since 2020:
category="inflation", start_date="2020-01-01"
US GDP quarterly growth since 2010 from the national accounts:
source="BEA", category="gdp", start_date="2010-01-01"
German CPI from the calendar tier:
indicator_name="Germany CPI YoY", source_policy="calendar"

list_economic_history_catalog

The series that exist, with no data values. Use it to resolve an indicator name before asking for data, and to size a request.

ParameterTypeDefaultMeaning
sourcestringnoneBLS, BEA or FRED. Omit for every series, including the calendar tier.
categorystringnoneOne of the five categories. Omit for all.
formatstring"toon""toon" or "json".

Fields: indicator_name, calc_type, source, category, first_date, last_date, data_points. first_date and last_date tell you how far each series reaches.

text
catalog[2]{indicator_name|calc_type|source|category|first_date|last_date|data_points}:
CPI-U YoY NSA|yoy|BLS|inflation|2015-01-01|2025-07-01|127
Unemployment Rate|level|BLS|employment|2015-01-01|2025-08-01|128

get_economic_history_catalog

An alias of list_economic_history_catalog, kept so that clients written against the earlier name keep working. It takes the same parameters and returns the same fields.

ParameterTypeDefaultMeaning
sourcestringnoneAs for list_economic_history_catalog.
categorystringnoneAs for list_economic_history_catalog.
formatstring"toon""toon" or "json".

get_data_quality

The results of the automated quality checks on the historical series. This is the tool that tells you whether the history is healthy beyond "it answered".

ParameterTypeDefaultMeaning
statusstringnoneok, warn or error. Omit for all.
sourcestringnoneBLS, FRED or BEA. Omit for all.
check_namestringnonefreshness, completeness, outlier or source_agreement. Omit for all.
formatstring"toon""toon" or "json".

Checks and thresholds:

CheckWhat it reportsWarnError
freshnessAge of the last observation against the expected lag for the series' frequency.lag > expectedlag > 3× expected
completenessMissing periods in the last 12 months.1 gap2 or more gaps
outlierLatest value against the series' own 5-year mean.abs(z) > 3abs(z) > 5
source_agreementPercentage difference on the latest shared period of a US labour statistics series and the St. Louis Fed series for the same indicator.> 2%> 10%

The expected lag is 3 days for daily series, 10 for weekly, 40 for monthly, 105 for quarterly and 400 for annual.

Fields: series_id, source, check_name, status, message, value, checked_at.

TOON output is a summary line followed by one row per result:

text
summary: ok=57 warn=3 error=1 total=61 last_run=2026-03-25T12:00:00
quality[1]{series_id|source|check_name|status|message|value|checked_at}:
ICSA|FRED|freshness|warn|Stale: last point 2026-03-08 (17d ago)|17.0|2026-03-25T12:00:00

In format="json" the response is a list holding one object with a summary key and a results key.

Reach for this tool when you need to know whether a series is current. A freshness result at warn or error is a direct statement about the age of the data, which a successful get_economic_history call is not. Checking that Economic Data is current shows how to use it.

get_contract_migration_telemetry

Counters on how clients use the interface: older against preferred parameter spellings, and request and response volumes by tool. It describes the interface, not the economic data.

No parameters. Returns an object with a status and a counters map.

health_check

Confirms that the server is running and can reach its database.

No parameters. Returns:

FieldMeaning
statusok when the database is reachable, degraded otherwise.
serverServer identity.
db_connectedWhether the database is reachable.
db_errorThe connection error, when there is one.
toolsThe tool names this server exposes.

This is a liveness check, not a freshness check. An ok here says nothing about whether the data is current. For that, use get_data_quality with check_name="freshness".

Choosing a tool

You wantUse
What is scheduled, what was expected, what printedget_economic_events
An indicator's numeric historyget_economic_history
Which indicators exist and how far back they reachlist_economic_history_catalog
Whether the series behind a number is current and healthyget_data_quality
Whether the server is reachablehealth_check

get_economic_events returns values formatted for people ("256K", "2.3%"), while get_economic_history returns numbers with units. Read them together: the calendar for the release and its surprise, the history for its context.