x402-email-validator
x402-email-validator: Email 语法校验(RFC 5322 近似)+ 顶级域/长度检查。纯正则,不查送达、不发信。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Email to process |
x402-email-validator: Email 语法校验(RFC 5322 近似)+ 顶级域/长度检查。纯正则,不查送达、不发信。
| Name | Required | Description | Default |
|---|---|---|---|
| No | Email to process |
Changes observed during successful MCP inspections.
Input schema / properties / emailAdded value: +{
+ "description": "Email to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations exist, so the description carries the full burden and does a good job: it discloses that validation is regex-based and only an approximation of RFC 5322, and that no deliverability or sending occurs. This sets correct expectations about false positives/negatives, a meaningful behavioral trait beyond 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.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, tightly packed sentence that front-loads the core action and appends the negative scope without filler. Slightly dense with parentheticals, but nothing is wasted.
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 simple validator this covers purpose and limits, but there is no output schema and the description never indicates the return shape (boolean vs. reasons/errors), nor that the email input is effectively required even though the schema marks no required parameters. An agent must guess the response contract.
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?
Single parameter with 100% schema description coverage, so the schema already documents 'email'. The description adds no format, length, or normalization detail about the input beyond what the schema provides, so the baseline of 3 applies.
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 (email syntax validation) and bounds the scope precisely: RFC 5322 approximate plus top-level-domain and length checks. The 'pure regex, no deliverability, no sending' qualifier separates it from the many verification-oriented email siblings, though no sibling is named 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?
The exclusions ('不查送达、不发信' – does not check deliverability, does not send mail) effectively tell the agent when NOT to use this tool and imply that a deliverability/verification tool is the alternative. It stops short of naming that alternative, so the routing is inferred rather than stated.
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.