Skip to main content
Glama

Parse Phone

parse_phone

解析 11 位中国大陆手机号:返回运营商(中国移动/中国联通/中国电信/中国广电/虚拟运营商,含物联网卡等细分类型)、归属地省/市、邮编与长途区号。号段库含约 49.7 万个号段(2023 年公开数据)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "phone": "<phone>"
    },
    "name": "parse_phone"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneYes11 位手机号(支持含空格/连字符输入,自动提取数字)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does add real behavioral context: the scope is restricted to mainland-China 11-digit mobiles, and the data vintage ('约 49.7 万个号段, 2023 年公开数据') signals that results may be stale for recently issued numbers. What it omits is failure behavior for invalid or non-mobile numbers, which is the main remaining gap.

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 dense sentence front-loads the resource and scope, followed by the return fields and the data-coverage caveat; nothing is redundant. It is slightly over-packed for a single sentence, with the parenthetical carrier list being the longest clause, but every element is substantive.

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 one-parameter parsing tool this is close to complete: scope, return fields, and data vintage are all covered, and an output schema exists so return-value structure needn't be spelled out. The missing piece is what happens on invalid input (error vs. null), which an agent would need to handle branching.

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% and the single parameter is fully documented in the schema, including tolerance for spaces and hyphens. The description only restates the '11-digit mainland mobile' constraint, adding no format or validation detail beyond the structured field, so baseline 3 applies.

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?

Names a specific verb and resource ('解析 11 位中国大陆手机号') and immediately scopes the input to mainland-China 11-digit numbers, which distinguishes it from parse_id_card and parse_plate. It also enumerates exactly what is returned (carrier incl. MVNO/IoT subtypes, province/city, postcode, area code), so an agent knows the tool's output domain without opening the schema.

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?

Usage is implied rather than stated: the '11 位中国大陆手机号' scoping tells the agent which inputs qualify, and the return fields imply when the tool is useful. There is no explicit when-to-use/when-not-to-use guidance and no reference to the sibling lookup_region, which an agent might otherwise consider for region information.

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