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

Fetch CNBS Nodes

cnbs_fetch_nodes
Read-onlyIdempotent

Query China National Bureau of Statistics classification tree nodes. Specify one or more category codes (e.g., '3' for yearly). Optionally provide parentId to navigate sub-trees. Nodes with isEnd=true contain a setId.

Instructions

获取中国国家统计局分类树节点。支持同时查询多个分类。isEnd=true 的节点 id 即为 setId。

Args:

  • categories (string | string[]): 单个或多个分类代码,如 "3" 或 ["1","2","3"](1月度 2季度 3年度 5分省季度 6分省年度 7其他)

  • parentId (string): 父节点ID,空或省略表示从根节点开始(单分类时有效)

Returns: 分类树节点列表,多个分类时返回按分类代码分组的结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoriesYes单个或多个分类代码,如 "3" 或 ["1","2","3"]
parentIdNo父节点ID,空或省略表示从根节点开始
Behavior4/5

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

Annotations already provide readOnlyHint, destructiveHint, idempotentHint, and openWorldHint. The description adds behavioral detail about isEnd=true indicating setIds, which is useful beyond annotations. No contradictions with annotations.

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 concise with a clear Args section and Returns line. It is front-loaded with the purpose and every sentence provides value. No wasted words.

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?

Input schema is simple with no output schema, so the description must explain return values. It states the return is a list of tree nodes, grouped by category for multiple categories, but lacks details on node fields (e.g., id, name, isEnd). This is adequate but not fully complete.

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?

Schema coverage is 100%, but the description adds significant domain-specific meaning: it explains the numeric code mapping for categories (e.g., '3' for 年度) and clarifies that parentId is only effective for single categories, going beyond the schema descriptions.

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 clearly states the tool fetches CNBS classification tree nodes, with specific verb 'fetch' and resource 'nodes'. It distinguishes itself from siblings like cnbs_fetch_end_nodes by supporting multiple categories and explaining that nodes with isEnd=true are setIds.

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

Usage Guidelines3/5

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

The description mentions support for multiple categories and that parentId is only effective for a single category, but does not explicitly contrast with siblings like cnbs_fetch_end_nodes or provide when-to-use vs alternatives. Usage context is implied but not clearly bounded.

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