x402-is-ean
Is EAN: Validate an EAN-8, EAN-13, or EAN-14 barcode number via its check digit. Provide value; returns true for valid EANs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Value to process |
Is EAN: Validate an EAN-8, EAN-13, or EAN-14 barcode number via its check digit. Provide value; returns true for valid EANs.
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Value to process |
Changes observed during successful MCP inspections.
Input schema / properties / valueAdded value: +{
+ "description": "Value 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, and it does disclose two useful traits: validation is check-digit based and the tool 'returns true for valid EANs'. It does not say what happens on invalid or malformed input (false vs. error), whether separators/whitespace are tolerated, or whether the input length must match the declared format.
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?
Two short sentences, front-loaded with the purpose and formats before the mechanics. The 'Is EAN:' prefix and the trailing 'Provide value' clause are slightly redundant, but nothing else 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 one-parameter pure validation predicate with no output schema, the description is adequate: it covers purpose, accepted formats, mechanism, and the success return. It is incomplete on sibling disambiguation and invalid-input behavior, which are the remaining things an agent would need.
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?
The single parameter's schema description is a vacuous placeholder ('Value to process'), but schema_description_coverage is reported as 100%, so the baseline is 3. The description does clarify that the value should be an EAN-8/13/14 barcode number, adding real meaning, but gives no format or sanitization details (digits only? hyphens allowed?).
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?
The description gives a specific verb (validate) and resource (EAN barcode number) and names the exact supported formats (EAN-8, EAN-13, EAN-14) plus the mechanism (check digit), so an agent knows what it does. It does not, however, distinguish itself from near-identical siblings such as x402-ean, x402-ean-validate, and x402-ean13-check, which is the main thing an agent would need to pick correctly here.
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?
There is no when-to-use or when-not-to-use guidance, and no alternative is named despite several overlapping EAN/validation siblings existing. 'Provide value' is an instruction, not usage guidance.
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.