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

Fetch Data from Specific Source

cnbs_fetch_data_from_source
Read-onlyIdempotent

Fetch data from specified sources (CNBS, census, international, department, FRED) by providing source name and custom parameters. Supports extensible data sources.

Instructions

从特定数据源获取数据,支持扩展数据源。

Args:

  • source (string): 数据源名称,如 "cnbs"、"census"、"international"、"department"

  • params (object): 数据源特定的参数

Returns: 数据源返回的数据

⚠️ FRED 注意:通过此工具调用 source="fred" 时,仅支持 FRED_API_KEY 环境变量,不支持 X-Fred-Api-Key 请求头。HTTP 模式请改用专用工具 ext_fred。

示例: cnbs_fetch_data_from_source(source="cnbs", params={keyword: "GDP"}) cnbs_fetch_data_from_source(source="census", params={type: "population", year: "2020"}) cnbs_fetch_data_from_source(source="international", params={source: "world_bank", indicator: "GDP", country: "CHN"}) cnbs_fetch_data_from_source(source="department", params={department: "finance", indicator: "财政收入", period: "2024Q1"})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes数据源名称
paramsYes数据源特定的参数
Behavior4/5

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

Annotations already provide readOnlyHint, idempotentHint, and openWorldHint. The description adds behavioral context: it supports extended data sources and discloses the FRED authentication caveat, which is beyond what annotations provide.

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

Conciseness5/5

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

The description is well-structured with Args, Returns, a warning note, and examples. Every sentence adds value, and the overall length is appropriate for the tool's complexity.

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

Completeness4/5

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

Without an output schema, the description states '数据源返回的数据' (data returned by the source), which is vague but acceptable for a generic fetch tool. Examples cover major sources, but error handling or pagination is not discussed.

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

Parameters5/5

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

Examples show concrete usage for each source (e.g., source='cnbs' with keyword, source='census' with type and year), adding significant meaning beyond the minimal schema descriptions. Schema coverage is 100% but the description compensates richly.

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

Purpose5/5

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

The description states '从特定数据源获取数据' (fetch data from a specific data source) and lists supported sources like cnbs, census, international, department. It distinguishes from siblings (e.g., cnbs_search, ext_fred) by focusing on fetching raw data from a source.

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

Usage Guidelines4/5

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

The description explicitly warns about FRED authentication limitations and suggests using ext_fred for HTTP mode. It provides examples for multiple sources, but does not explicitly state when to use this tool versus dedicated ext_ tools for other sources.

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