Skip to main content
Glama

ScorpTech x402 Tools

Barcode Generate

barcode_generate
Read-onlyIdempotent

Generate a 1D barcode as SVG (plus base64 data URI and the raw module pattern): Code 128 (any ASCII, automatic A / B / C subset switching for the shortest symbol), GS1-128 shipping / logistics labels from "(01)…(17)…(10)…" application identifiers (FNC1 separators, SSCC / GTIN check digits verified), EAN-13, EAN-8, UPC-A and ITF-14 (check digit computed when omitted, verified when given) and Code 39 (optional mod-43 check). Options: module width, bar height, quiet zone, human-readable text, colours. For product labels, shipping cartons, inventory and tickets. Returns JSON with: type, data, checkDigit, modules, pattern, width, height, svg. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/barcode-generate

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": {
      "data": "<data>"
    },
    "name": "barcode_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bgNo#ffffff
fgNo#000000
dataYesContent to encode (digits for EAN / UPC / ITF)
textNoPrint the human-readable text under the bars
typeNocode128
quietNoQuiet zone each side (modules)
scaleNoPixels per module
heightNoBar height (px)
checksumNoCode 39: append the mod-43 check character

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Read-only, idempotent and non-destructive are already in annotations, so the safety profile is covered elsewhere. The description does add real context beyond that: the exact return payload keys, the fact that check digits are computed when omitted and verified when given, and the $0.002 USDC x402 cost on Base or Solana. The pricing and payment-rail detail is useful but sits outside core tool behavior, and no failure modes (e.g. what happens on an invalid GS1 AI string or a bad check digit) are described.

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?

One dense, front-loaded block: capability and symbologies first, options next, use cases and return shape last. Every sentence carries information, though the symbology paragraph is cramped and the pricing/endpoint sentence could be split for scanability.

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?

There is no output schema, so the explicit enumeration of return keys (type, data, checkDigit, modules, pattern, width, height, svg) is exactly what an agent needs. Combined with symbology rules, check-digit handling and cost disclosure, nothing required to invoke or interpret the tool is missing.

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 67%, and the description closes most of the gap by mapping its 'Options' list onto scale, height, quiet zone, text and colors, and by explaining what each type expects (AI strings for GS1-128, digits for EAN/UPC/ITF). The mapping is loose — 'colours' never names fg/bg — and per-type data length/precondition semantics are left implicit.

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 (generate), resource (1D barcode as SVG plus base64 data URI and raw module pattern) and enumerates every supported symbology with per-symbology behavior (Code 128 subset switching, GS1-128 FNC1 separators, EAN/UPC/ITF check digits, Code 39 mod-43). This clearly separates it from 2D siblings like qr_generate and from decoding tools like food_barcode.

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?

Names concrete usage contexts (product labels, shipping cartons, inventory, tickets) and provides the HTTPS/GET alternative endpoint for the same capability. It stops short of explicit when-not guidance, e.g. no statement that qr_generate should be preferred for 2D codes or that GS1-128 is the right type only for AI-formatted logistics data.

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