Skip to main content
Glama

Lookup 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": "lookup_region"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the load; it helpfully discloses the underlying dataset (GB/T 2260), its size (~4100 entries) and level coverage, which sets expectations for result granularity. It omits behaviorally relevant facts for a reverse-lookup tool: what happens when nothing matches, whether multiple lookup parameters are combined or which one wins, and whether results are deduplicated or ordered.

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 organized by semicolons into dataset scope followed by the four query modes, with examples inline; there is essentially no filler. The dense single sentence is readable but could break the mode list into discrete clauses for faster scanning.

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?

All six parameters are optional and an output schema exists, so the description need not describe returns; what it must convey is how to drive the lookup, and it covers every lookup parameter plus level. The remaining gap is the all-optional case: it never says whether omitting every parameter is valid or what is returned then.

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 description coverage is 100%, so the baseline is 3; the description nonetheless adds mode-level meaning by pairing each identifier with a lookup intent (code = exact match, zip_code = reverse lookup, tel_code = reverse lookup, query = keyword search). It does not clarify the tension between 'six-digit exact code' here and the schema's '2/4/6 位' code, nor how `limit` interacts with the amount of matches.

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?

States a specific verb (查询/lookup) plus a precisely bounded resource: Chinese administrative divisions under GB/T 2260, three levels, ~4100 records, with postal and area codes. The scope is narrow enough that an agent can tell it apart from the parse_* siblings, which handle ID cards, phone numbers and plates.

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 spells out the four lookup modes with concrete examples (name keyword, exact 6-digit division code, 6-digit zip reverse lookup, area code reverse lookup) and notes the level filter, so the calling context is clear. It gives no exclusions or precedence rules — e.g. what happens if code and query are supplied together, or which mode to prefer — and no guidance on choosing it over a sibling.

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