Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-phone-validator

x402-phone-validator: 电话号码格式校验(E.164 全局格式为主,国家码可选)。只验格式与位数规则,不做运营商查询/真号验证。

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": "x402-phone-validator"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneYes
regionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "phone"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / region
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "type": "string"
      -}
  4. Changed1 schema field changed
    • addedInput schema / properties / region
      Added value: +{
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "type": "string"
      -}
  6. Changed1 schema field changed
    • addedInput schema / properties / region
      Added value: +{
      +  "type": "string"
      +}
  7. Changed1 schema field changed
    • removedInput schema / properties / phone / description
      Removed value: -"Phone to process"
  8. Changed1 schema field changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "description": "Region to process",
      -  "type": "string"
      -}
  9. Changed1 schema field changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Region to process",
      +  "type": "string"
      +}
  10. Changed1 schema field changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "description": "Region to process",
      -  "type": "string"
      -}
  11. Changed1 schema field changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Region to process",
      +  "type": "string"
      +}
  12. Changed1 schema field changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "description": "Region to process",
      -  "type": "string"
      -}
  13. Changed1 schema field changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Region to process",
      +  "type": "string"
      +}
  14. Changed1 schema field changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "description": "Region to process",
      -  "type": "string"
      -}
  15. Changed1 schema field changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Region to process",
      +  "type": "string"
      +}
  16. Changed1 schema field changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "description": "Region to process",
      -  "type": "string"
      -}
  17. Changed1 schema field changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Region to process",
      +  "type": "string"
      +}
  18. Changed1 schema field changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "description": "Region to process",
      -  "type": "string"
      -}
  19. Changed2 schema fields changed
    • addedInput schema / properties / phone
      Added value: +{
      +  "description": "Phone to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Region to process",
      +  "type": "string"
      +}
  20. Added

TDQS

B3.4/5.0
Behavior3/5

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

There are no annotations, so the description must show most behavior itself. It clearly states what the tool does not do (no carrier query or real-number check), which is useful; it does not describe the validation result on failure, whether errors explain the cause, or how region affects the rules. As a result, the description does not fully cover the behavior of a validator with no annotations and no output 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?

Two short clauses, with the capability and the boundary front-loaded; it is efficiently sized. Repeating the tool name at the start adds no value, but it causes only minor waste.

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?

For a 2-parameter tool with no annotations and no output schema, the definition covers the core purpose and the exclusions well, but it leaves open what a successful result or a failure looks like and how region is consumed. Enough is present to attempt a call, but not to predict the outcome.

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 0%, so the description must explain both parameters. The phrase '国家码可选' clarifies that region is an optional country code, which is meaningful beyond the schema; however, it does not specify whether the value is an ISO country code or a dialing prefix, nor does it give the expected format of phone. As a result, it only partially compensates for the gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: it validates phone-number format, mainly the E.164 global format, and it explicitly limits the scope: it checks format and digit-length rules only. This scoping distinguishes the tool from sibling tools that may check carrier details or real-number existence (e.g., x402-validate-phone, x402-is-phone), although it does not name those siblings.

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?

It provides an explicit exclusion: no carrier lookup and no real-number verification, so an agent knows not to use this tool when it needs reachability confirmation. It gives no positive when-to-use guidance and does not tell the agent how to choose among the closely named sibling x402-validate-phone and x402-is-phone, so the guidance remains implied.

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