Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as FreeDailyPro Tools. If you published it, claim ownership there.

validate_gtin

Read-onlyIdempotent

Validate a UPC, EAN, GTIN or ISBN-13. Checks the GS1 check digit and names the format (UPC-A, EAN-13, EAN-8, GTIN-14). When the digit is wrong it returns the digit it should be. Notes ISBN and ISSN prefixes. It does not look the product up. Nothing is stored.

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": {
      "code": "<code>"
    },
    "name": "validate_gtin"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesA GTIN-8, 12, 13 or 14 barcode number (EAN or UPC), digits only, for example 4006381333931.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / code / description
      Added value: +"A GTIN-8, 12, 13 or 14 barcode number (EAN or UPC), digits only, for example 4006381333931."
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already declare read-only, idempotent, non-destructive, closed-world behavior, and the description still adds real substance: the exact validation algorithm (GS1 check digit), the named formats returned, the corrective output on failure, and the no-lookup/no-storage guarantees. This is behavior beyond what the structured fields convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with what is validated, then return behavior, then scope exclusions. Every clause carries information; there is no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 must carry return-value detail, and it does: it names the detected format and explains that a bad check digit yields the correct digit. For a one-parameter validation tool this is complete.

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 coverage is 100% and the single parameter is well documented, so the baseline is 3. The description adds meaning the schema lacks by stating that ISBN-13 is accepted and that ISBN/ISSN prefixes are noted, extending the accepted-input domain beyond the schema's 'GTIN-8, 12, 13 or 14 ... digits only' wording.

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?

States a specific verb (validate) and resource (UPC/EAN/GTIN/ISBN-13) and precisely describes the operation: checking the GS1 check digit and naming the format. An agent can immediately distinguish this from lookup or conversion tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clearly bounds the tool with 'It does not look the product up' and 'Nothing is stored,' telling the agent when this tool is insufficient. It stops short of naming an alternative tool for product lookup, so it is clear but not fully routing.

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