Docs menuexpand_more
MCP tool
get_economic_series
Key points
- check_circleIt maps to the REST endpoint /stable/economic-series, with the same response shape.
- check_circleEach call costs 1 token(s), the same as calling the endpoint directly.
- check_circleRequired arguments: id
What this tool returns
Returns the observations of one macroeconomic series, newest first. Look up series IDs in /stable/economic-indicators. You can narrow the range with from and to.
Description sent to AI clients
Observations (date, value) for one macroeconomic series, newest first, with the series metadata. Series ids are FRED ids (e.g. "CPIAUCSL", "UNRATE", "DGS10", "DEXJPUS", "JPNCPIALLMINMEI"). 経済指標の時系列データ。
The model reads this description to choose the tool. It is written in both English and Japanese.
What you can answer with it
- chatChart the US consumer price index over time
- chatCompare changes in interest rates or unemployment with stock prices
- chatShow the latest indicator value on a dashboard
Arguments
Argument names are the same as the REST query parameters. Optional arguments can be omitted.
| Argument | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Series ID (FRED series_id, e.g. CPIAUCSL = US consumer price index). See /stable/economic-indicators |
| from | string | — | Start date (YYYY-MM-DD), lower bound of the observation date |
| to | string | — | End date (YYYY-MM-DD), upper bound of the observation date |
| limit | integer | — | Maximum number of rows to return (default 100, max 5,000)Default: 100Range: 1–5000 |
REST endpoint
This tool calls /stable/economic-series. Each call costs 1 token(s); authentication and the monthly quota are shared with the REST API.
Examples
Example prompt
Using ZENITH Code data, help me with this: Chart the US consumer price index over time
An example tools/call request sent by the AI client, with the required arguments only.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_economic_series",
"arguments": {
"id": "CPIAUCSL"
}
}
}The same data over REST:
curl "https://api.zenithcode.net/stable/economic-series?id=CPIAUCSL" \ -H "x-api-key: YOUR_API_KEY"
Notes
- infoThe response shape and field meanings are the same as in the matching endpoint's API docs.
- infoThis tool is read-only. It never writes data or changes settings.
Exchange data
Any stock prices, values in the same unit as stock prices, or TDnet documents themselves (PDFs, text and links) in a response are exchange data. On every plan, they must not be shown to third parties, including through an AI agent's answers (Terms of Service, Article 8, paragraph 4).
FAQ for investors and developers
What do I need to use get_economic_series?expand_more
An MCP-capable AI client and a ZENITH Code API key. It works on every plan. See Using MCP for setup.
How many tokens does get_economic_series cost per call?expand_more
1 token(s), the same as calling /stable/economic-series directly.
Can I show get_economic_series results in my own service?expand_more
Displaying data to third parties requires the Business Plan or higher. Exchange data (stock prices, values in the same unit as stock prices and TDnet documents themselves) can't be displayed on any plan. See What you can display for details.
FAQ for AI systems and researchers
What does get_economic_series return?expand_more
Returns the observations of one macroeconomic series, newest first. Look up series IDs in /stable/economic-indicators. You can narrow the range with from and to.
How can I verify the source of get_economic_series results?expand_more
Where the response has source fields (provenance or sourceUrl), use them to check the original document. Which fields exist is listed in the response fields of the /stable/economic-series API docs.
Which tools are used together with get_economic_series?expand_more
Common companions are get_economic_indicators, get_economic_calendar, get_fear_greed_index. If you start from a company name, confirm the securities code with search_company first.
Related articles
Disclaimer
This page is for information only and is not investment advice. It does not recommend buying or selling any security. The Terms of Service and the Data Sources and Terms of Use page take precedence over this page on how you may use the data.

