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

Get CNBS Regions

cnbs_get_regions
Read-onlyIdempotent

Retrieve a list of China's administrative regions with codes and names. Filter by keyword or level (province, city, county) for targeted data queries.

Instructions

获取可用的地区列表,用于分省数据查询。返回地区代码和名称列表。

Args:

  • keyword (string): 搜索关键词,可选,用于过滤地区

  • level (string): 地区级别过滤,可选:province(省级)、city(市级)、county(县级)

Returns: 地区列表,包含 code(地区代码)、name(全称)、shortName(简称)

示例:

  • 不传参数:返回所有省份

  • keyword="广东":返回广东省

  • keyword="江":返回名称包含"江"的省份(江苏、浙江等)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordNo搜索关键词,如 "广东"、"北京"
levelNo地区级别过滤
Behavior5/5

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

Description adds behavioral details beyond annotations: explains return fields (code, name, shortName), shows filtering behavior (e.g., keyword='江' returns provinces with '江'), and default behavior (returns all provinces with no params). 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.

Conciseness4/5

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

Description is well-structured with Args, Returns, and Examples sections. Slightly verbose but clear and front-loaded with purpose.

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

Completeness5/5

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

Tool is simple with only two optional params; description covers purpose, parameters, examples, and return structure completely. No output schema needed.

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 has 100% coverage with descriptions, but description adds examples and clarifies default behavior (no params returns provinces), which is not in schema.

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?

Description states '获取可用的地区列表' (get available region list) and explains filtering by keyword and level, distinguishing it from sibling tools like cnbs_search which search for data.

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?

Provides examples of usage (no params, keyword filters), but does not explicitly say when to use this tool vs alternatives. However, context from sibling tools makes it clear.

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