x402-phone-validator
x402-phone-validator: 电话号码格式校验(E.164 全局格式为主,国家码可选)。只验格式与位数规则,不做运营商查询/真号验证。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | Phone to process |
x402-phone-validator: 电话号码格式校验(E.164 全局格式为主,国家码可选)。只验格式与位数规则,不做运营商查询/真号验证。
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | Phone to process |
Changes observed during successful MCP inspections.
Input schema / properties / regionRemoved value: -{
- "description": "Region to process",
- "type": "string"
-}Input schema / properties / regionAdded value: +{
+ "description": "Region to process",
+ "type": "string"
+}Input schema / properties / regionRemoved value: -{
- "description": "Region to process",
- "type": "string"
-}Input schema / properties / regionAdded value: +{
+ "description": "Region to process",
+ "type": "string"
+}Input schema / properties / regionRemoved value: -{
- "description": "Region to process",
- "type": "string"
-}Input schema / properties / phoneAdded value: +{
+ "description": "Phone to process",
+ "type": "string"
+}Input schema / properties / regionAdded value: +{
+ "description": "Region to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It usefully discloses the negative scope (no carrier lookup, no real-number verification) and the E.164 orientation, but says nothing about the return shape, error behavior, or how invalid input is handled, leaving real gaps for a pure validator.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Very short and front-loaded: purpose first, then the scoping caveat. The only waste is leading with the redundant tool name 'x402-phone-validator:' before the actual description.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter validator with no output schema and no annotations, the description covers both what is checked and what is deliberately not checked, which is the key decision information. It could be complete by indicating the response (boolean vs. detail object), but that omission is minor.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
One parameter with 100% schema description coverage, so the baseline is 3. The description adds a bit of expected-format context (E.164, country code optional), but the lone 'phone' field in the schema is narrowly defined as 'Phone to process' and the country-code notion has no matching parameter, so the added meaning is modest.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource (phone number format validation) and scopes it (E.164 primary, optional country code). It implicitly distinguishes itself from siblings like x402-is-phone or x402-random-phone by pinning down that only format/digit rules are checked, though it names no sibling explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives a clear positive condition (format validation) and an explicit exclusion ('不做运营商查询/真号验证' — no carrier lookup or real-number verification), which routes the agent away from tools that do deliverability checks. No named alternative tool, so it stops 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.
Add one secure layer between your agents and this server.