Skip to main content
Glama
icen-ai
by icen-ai

FRED Economic Data (Federal Reserve)

ext_fred
Read-onlyIdempotent

Query the Federal Reserve Economic Data (FRED) database. Access over 800,000 US economic series including GDP, interest rates, exchange rates, inflation, and commodity prices. Supports querying multiple series simultaneously with optional date range and limit.

Instructions

查询美联储经济数据库 (FRED)。涵盖美国GDP、利率、汇率、通胀、大宗商品价格等 800,000+ 系列。支持同时查询多个系列。 ⚠️ 需要 FRED API Key:在 MCP 客户端配置中添加请求头 X-Fred-Api-Key: <your_key>(在 https://fred.stlouisfed.org/docs/api/api_key.html 免费申请)。stdio 模式可改用 FRED_API_KEY 环境变量。

Args:

  • series (string | string[]): 单个或多个系列名/FRED代码,如 "FED_FUNDS" 或 ["FED_FUNDS","CNY_USD","OIL_PRICE_WTI"]

  • limit (number): 每个系列返回数量,默认 100

  • sortOrder (string): "desc"(最新优先)或 "asc"

  • observationStart (string): 起始日期,如 "2010-01-01"

常用系列: US_GDP | US_GDP_GROWTH | FED_FUNDS | US_10Y_YIELD | US_2Y_YIELD | CNY_USD | EUR_USD | US_UNEMPLOYMENT | US_CPI | OIL_PRICE_WTI | GOLD_PRICE | US_M2 | SP500 | VIX | DOLLAR_INDEX

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seriesYes单个系列名或数组,如 "FED_FUNDS" 或 ["FED_FUNDS","CNY_USD"]
limitNo每个系列返回数量
sortOrderNo排序方向desc
observationStartNo起始日期 YYYY-MM-DD
observationEndNo结束日期 YYYY-MM-DD
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

注解已声明只读、幂等特性,描述额外提供了API密钥配置要求,这是有用的行为信息。但未提及响应格式、速率限制或常见错误,附加值一般。

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

描述结构清晰:先陈述目的,后给出API密钥警告,再列出参数及示例,最后补充常用系列列表。内容精炼,无冗余,每个部分都有价值。

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

对于5个参数的工具,描述覆盖了参数细节和API密钥,但缺少输出片段的描述(无输出模式),也没有说明错误处理或限制。尽管注解补充了部分内容,但整体完整性仍有欠缺。

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

模式描述覆盖率为100%,基线为3。描述在参数示例、常用系列列表和日期格式方面增加了超出模式的实用指导,尤其是series参数的说明和常见系列列举,提升了可用性。

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

描述明确说明工具用于查询FRED经济数据库,涵盖800k+系列,并支持多系列查询。虽然很清晰,但未与同级工具ext_fred_series进行区分,因此减1分。

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

描述未提供何时使用此工具而非其他数据源(如ext_imf、ext_oecd)的指导,也没有说明不适用的情况。缺乏使用上下文或替代方案比较。

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icen-ai/mcp-cnbs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server