Skip to main content
Glama

Create product

create_product

Create a catalog product. Defaults to draft status — publish it by sending status 'active' once it is complete. Use list_categories, list_brands and list_warehouses for the ids; SKU is generated when omitted and must be unique in the workspace. Set trackInventory with an opening stock to start counting units, which is recorded as the first movement in the product stock history. A bundle (type bundle with bundleItems) holds no stock of its own: its stock, tracking and cost are derived from its components, so a stock sent for it is refused and trackInventory/costPrice are ignored. If the target warehouse is set to list new products on the marketplaces, this product joins those channels. When productGroupId names an existing product model, the product joins that model as a new article and takes the model's shared content (name, description, category, brand, characteristics, translations) instead of the values sent. Enforces the workspace plan limit; the result echoes the operating workspace.

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

Input Schema

NameRequiredDescriptionDefault
eanNoGTIN/EAN-8/12/13/14 barcode. Presence-and-shape validation only, no checksum.
mpnNoManufacturer part number — the maker's own code for the item, not the shop SKU. eBay requires it beside the brand in many categories.
skuNo
nameYes
sizeNo
tagsNo
typeNosimple, or bundle — one sellable item made of bundleItems, holding no stock of its own. Fixed at creation: an update that changes it is refused.simple
unitNo
colorNo
depthNo
priceNo
stockNoUnits on hand, for a product that tracks inventory; a change on update is recorded as a relative movement in the stock history. Refused for a bundle — its stock is derived from its components.
widthNo
genderNo
heightNo
imagesNoThe product's photos as { url, alt }, at most 10; the first is the main photo. On an update the list you send replaces the whole set. An entry whose url equals a photo the product already has keeps that stored file and takes only the caption (alt) you send, so sending back what you read never downgrades a stored photo.
statusNodraft
videosNoVideo links for the product page (YouTube, Vimeo or a direct file), https only, at most 5. Links, not uploads. On update, sending the field replaces the whole list.
weightNo
brandIdNo
patternNo
ageGroupNo
materialNo
sizeTypeNo
conditionNo
costPriceNoPurchase price per unit, in costCurrency. Ignored for a bundle: its cost is the sum of its components' costs when all are known and in one currency.
categoryIdNo
sizeSystemNo
supplierIdNo
weightUnitNo
bundleItemsNoComponents of a bundle (type bundle only): simple, non-archived products of the bundle's warehouse, each listed once. Selling the bundle deducts these components; the bundle's stock is how many whole bundles they make. On update, sending it replaces the whole composition.
descriptionNo
warehouseIdNo
costCurrencyNo
dimensionUnitNo
compareAtPriceNo
productGroupIdNo
trackInventoryNoWhether the product counts units. Ignored for a bundle: it tracks stock exactly when one of its components does.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / images / description
      Added value: +"The product's photos as { url, alt }, at most 10; the first is the main photo. On an update the list you send replaces the whole set. An entry whose url equals a photo the product already has keeps that stored file and takes only the caption (alt) you send, so sending back what you read never downgrades a stored photo."
  2. Changed7 schema fields changed
    • addedInput schema / properties / bundleItems / description
      Added value: +"Components of a bundle (type bundle only): simple, non-archived products of the bundle's warehouse, each listed once. Selling the bundle deducts these components; the bundle's stock is how many whole bundles they make. On update, sending it replaces the whole composition."
    • addedInput schema / properties / costPrice / description
      Added value: +"Purchase price per unit, in costCurrency. Ignored for a bundle: its cost is the sum of its components' costs when all are known and in one currency."
    • addedInput schema / properties / images / items / properties / alt
      Added value: +{
      +  "description": "Alternative text of the photo, up to 200 characters. Optional: when empty a storefront should use the product name.",
      +  "example": "White leather sneakers, side view",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / mpn
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 120,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Manufacturer part number — the maker's own code for the item, not the shop SKU. eBay requires it beside the brand in many categories.",
      +  "example": "TR-1"
      +}
    • addedInput schema / properties / stock / description
      Added value: +"Units on hand, for a product that tracks inventory; a change on update is recorded as a relative movement in the stock history. Refused for a bundle — its stock is derived from its components."
    • addedInput schema / properties / trackInventory / description
      Added value: +"Whether the product counts units. Ignored for a bundle: it tracks stock exactly when one of its components does."
    • addedInput schema / properties / type / description
      Added value: +"simple, or bundle — one sellable item made of bundleItems, holding no stock of its own. Fixed at creation: an update that changes it is refused."
  3. Changed1 schema field changed
    • addedInput schema / properties / costCurrency
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[A-Z]{3}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / videos
      Added value: +{
      +  "default": [],
      +  "description": "Video links for the product page (YouTube, Vimeo or a direct file), https only, at most 5. Links, not uploads. On update, sending the field replaces the whole list.",
      +  "example": [
      +    {
      +      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
      +    }
      +  ],
      +  "items": {
      +    "properties": {
      +      "url": {
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
  5. Changed10 schema fields changed
    • addedInput schema / properties / ageGroup
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "newborn",
      +        "infant",
      +        "toddler",
      +        "kids",
      +        "adult"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / color
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 80,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / condition
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "new",
      +        "used",
      +        "refurbished"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / gender
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "male",
      +        "female",
      +        "unisex"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / material
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 120,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / pattern
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 80,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / productGroupId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 120,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / size
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 60,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / sizeSystem
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "AU",
      +        "BR",
      +        "CN",
      +        "DE",
      +        "EU",
      +        "FR",
      +        "IT",
      +        "JP",
      +        "MEX",
      +        "UK",
      +        "US"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedInput schema / properties / sizeType
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 40,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  6. Changed1 schema field changed
    • changedInput schema / properties / images / items / properties / uploadedAt / pattern
      Previous value: -"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"New value: +"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
  7. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare only mutability/safety flags; the description then adds substantial non-obvious behavior: draft default, bundle stock being refused with trackInventory/costPrice ignored, productGroupId content inheritance, marketplace-channel joining from the warehouse, and workspace plan-limit enforcement. This is exactly the kind of context annotations cannot carry.

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?

A single dense paragraph that front-loads the core action and default status before the conditional edge cases (bundle, productGroupId, plan limit). Every clause carries real information, though the run-on length makes some rules harder to scan than a segmented format would.

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?

No output schema exists, and the description compensates by noting the result echoes the operating workspace. It covers the high-risk behavioral cases raised by the schema (bundle refusals, inheritance, plan limit), leaving only minor uncovered fields for a 38-parameter tool.

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?

With only 24% schema description coverage across 38 parameters, the description must compensate, and it does so for the hazardous/ambiguous ones: sku generation and uniqueness, status default, trackInventory/stock interaction, costPrice and stock being ignored for bundles, and productGroupId semantics. Many low-risk params (name, size, tags, dimensions) remain unexplained, keeping this below 5.

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?

Opens with a specific verb+resource ('Create a catalog product') and immediately distinguishes scope by contrasting creation-time defaults with the update path ('publish it by sending status active once it is complete'). An agent can tell this apart from update_product without opening either schema.

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?

Explicitly routes the agent to siblings for prerequisites ('Use list_categories, list_brands and list_warehouses for the ids') and explains the draft-then-publish workflow. It does not name when-not-to-use or contrast against update_product directly, so it stops short of a full 5.

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