Skip to main content
Glama

Engine Heart

region.lookup_region

中国行政区划查询(GB/T 2260,省/市/区县三级约 4100 条,含邮政编码与长途区号):支持按名称关键词(如 南山、青岛、凉山)查、按 6 位区划码精确查(如 440305)、按 6 位邮编反查(如 266001)、按长途区号反查(如 0532);可用 level 限定省/市/区县层级。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "region.lookup_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo区划码(2/4/6 位,如 110105),精确查询
levelNo可选层级过滤:省 / 市 / 区县
limitNo返回条数上限,默认 20,最大 100
queryNo地区名称关键词(省/市/区县名,如 朝阳、深圳、凉山彝族自治州)
tel_codeNo长途区号(如 010、0571),反查地区
zip_codeNo6 位邮政编码(如 100010),反查地区

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations and no output schema, the description carries the burden, and it does disclose the data source, the record count, and that results include postal codes and area codes — useful trust context. It omits result ordering for keyword matches, behavior on empty results, and the existence of a result cap (the limit default/max lives only in the schema).

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?

One front-loaded sentence states purpose and dataset, followed by a semicolon-delimited list of lookup modes; nothing is redundant. The density is high but the parallel structure keeps it scannable.

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?

For a six-optional-parameter lookup tool with no output schema, the description covers scope, provenance, all lookup modes, and the level filter adequately. Remaining gaps — return shape, ordering, and pagination behavior — are modest but real given the absence of an output schema.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter is already documented with examples, making 3 the baseline. The description's added value is framing the four lookup parameters as alternative modes rather than combinable filters, which the schema alone does not convey, but it adds no new syntax or format detail.

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 names a specific verb and resource (中国行政区划查询) and pins down the data standard (GB/T 2260), the three-level scope, and roughly 4,100 records. No sibling tool covers administrative divisions, so an agent can identify this tool's domain immediately.

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?

It enumerates the four mutually exclusive lookup modes — name keyword, 6-digit division code, 6-digit zip code, and area code — each with a concrete example, which tells the agent which parameter to reach for in each case. It doesn't state explicit exclusions or what to do on ambiguous or zero-result queries, so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources