Skip to main content
Glama

Gookit Barcode Tools

Generate SKUs

generate_sku
Read-onlyIdempotent

Build SKUs from category, product name and up to 3 attributes (size, colour…), with the same rules as gookit.co/sku-generator: each part is shortened by its rule, parts are joined with a separator, and duplicates are flagged. Send rows (a list of products) or variants (one product and its attribute values; every combination becomes a row). Up to 50 rows per call. Nothing is saved.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_sku"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNoProducts, one per row. Send this or `variants`.
partsNoThe parts to use, in order. Default: category (first 3), name (initials), attr1–attr3 (first 3). Rules: first = first characters, initials = first letter of each word, consonants = drop vowels, full = whole value.
prefixNoFixed text for the "prefix" part. Default "GK".
variantsNoOne product and its attribute values. Send this or `rows`.
separatorNo-
uppercaseNo
max_lengthNoLonger SKUs get a too-long warning.
abbreviationsNoCodes used in place of a whole value, e.g. Small → S, Black → BLK. Checked before the part's rule.
sequence_startNoFirst number of the "sequence" part.1
sequence_paddingNoMinimum digits; leading zeros fill the rest.
number_duplicatesNoAdd -2, -3… to a new SKU that repeats one already in the list.

Output Schema

NameRequiredDescriptionDefault
skusYes
next_stepNoOne line naming the Gookit product for the next step, such as printing labels. Not part of the result.
truncatedYes
rows_in_inputYes
duplicate_rowsYes
combinations_totalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world), it adds real behavioural facts: 'Nothing is saved', duplicates are flagged, and rows are capped at 50. Combined with the schema's too-long warning and existing_sku collision rule, an agent knows the full side-effect profile, though response shape is left to the output schema.

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?

Two tightly packed sentences with zero filler: the core operation and rule model come first, then the input-mode choice, then limits and the no-persistence guarantee. Every clause carries information.

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?

For an 11-parameter tool with nested objects, the description covers the essentials an agent needs before calling: which mode to use, the row cap, duplicate flagging, and lack of persistence; return values are covered by the output schema. Minor gaps remain around abbreviation/sequence interactions, but nothing critical.

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 already 82%, so the baseline is 3; the description earns extra by explaining that `variants` expands 'every combination ... becomes a row', clarifying part shortening and separator joining, and confirming nothing is persisted. It still leaves `parts` rules, abbreviations modes and sequence settings to the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Build SKUs from category, product name and up to 3 attributes', and names the reference behaviour (gookit.co/sku-generator rules). It is easy to tell this apart from generate_barcode/generate_qr/validate_gtin by resource, though it never explicitly contrasts itself with those siblings.

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?

It clearly routes between the two input modes ('Send `rows` ... or `variants`') and states the operational bound ('Up to 50 rows per call'). It does not say when to prefer generate_sku over the barcode/QR siblings, but the SKU-vs-symbol distinction is self-evident from the resource.

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