Skip to main content
Glama

ScorpTech x402 Tools

Ean Validate

ean_validate
Read-onlyIdempotent

GTIN check digit for EAN-8, UPC-A (12 digits), EAN-13 and GTIN-14. The weight alternates 3 and 1 from the right, starting with 3 on the digit beside the check. Spaces and hyphens are ignored. This does not check that the GS1 prefix was assigned. Returns JSON with: valid, compact, kind, reason, check. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/ean-validate

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": {
      "value": "<value>"
    },
    "name": "ean_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent and open-world traits, but the description adds substantive context they cannot: the alternating 3/1 weighting algorithm, that spaces and hyphens are ignored, that GS1 prefix assignment is not verified, and the x402 pricing with Base/Solana plus an equivalent HTTPS endpoint. That is exactly the kind of operational detail an agent needs beyond the structured hints.

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?

It is front-loaded with capability and accepted formats, then algorithm, then exclusions, then return fields, then pricing/endpoint. Every sentence carries information, though the pricing and endpoint sentence, while useful, is dense and slightly crowds the core description.

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?

With no output schema, the description usefully enumerates the returned JSON fields (valid, compact, kind, reason, check), and it covers normalization, algorithm and cost for a simple one-parameter tool. Minor gap: the semantics of the 'compact' and 'check' fields are not explained, leaving the agent to infer them.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden for the single 'value' parameter. It compensates meaningfully by stating which identifier formats are accepted and that spaces and hyphens are stripped before validation, though it never names the parameter or mentions the 30-character limit.

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?

The description names a specific operation (GTIN check digit validation) and enumerates the exact formats covered: EAN-8, UPC-A 12-digit, EAN-13 and GTIN-14. It also explicitly bounds scope with 'does not check that the GS1 prefix was assigned', which separates it from sibling validators such as isbn_validate or card_validate that operate on different identifier families.

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?

The negative scope statement ('does not check that the GS1 prefix was assigned') gives a useful when-not signal, and the accepted format list implies when to use it. However, there is no explicit routing to alternatives and no statement of prerequisites beyond the implied format constraint, so guidance is present but incomplete.

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