Generate SKUs
generate_skuBuild 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
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Products, one per row. Send this or `variants`. | |
| parts | No | The 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. | |
| prefix | No | Fixed text for the "prefix" part. Default "GK". | |
| variants | No | One product and its attribute values. Send this or `rows`. | |
| separator | No | - | |
| uppercase | No | ||
| max_length | No | Longer SKUs get a too-long warning. | |
| abbreviations | No | Codes used in place of a whole value, e.g. Small → S, Black → BLK. Checked before the part's rule. | |
| sequence_start | No | First number of the "sequence" part. | 1 |
| sequence_padding | No | Minimum digits; leading zeros fill the rest. | |
| number_duplicates | No | Add -2, -3… to a new SKU that repeats one already in the list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skus | Yes | ||
| next_step | No | One line naming the Gookit product for the next step, such as printing labels. Not part of the result. | |
| truncated | Yes | ||
| rows_in_input | Yes | ||
| duplicate_rows | Yes | ||
| combinations_total | No |