Skip to main content
Glama

Create product

create_product

Adds a product to the catalog

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

Input Schema

NameRequiredDescriptionDefault
priceNoCan be decimal, integer, empty or a string.
stockNoSet to 0 for infinite stock or disabled stock.
statusNoAccepted values: Available, Available but not online, Pre-order, Sold Out, Invisible, Customers only, Price visible for customers, Choose property, Hide status, custom0, custom1, ..., custom9.
categoryNoThe name of the category in the default language of the webshop. Not applicable for product variations.
image:noNoInclude an image URL to upload product photos. The first image is the main photo, the next four are sub photos. When a product photo already exists, it will be replaced. After uploading, the images will be scaled proportionally according to the webshop settings, thumbnails will be created automatically and the image will be synchronized to multiple file servers. Make sure that each image has a valid URL, a maximum file size of 25MB, a valid extension (.jpg, .jpeg, .png or .gif) and a valid MIME type (image/jpeg, image/jpg, image/png, image/gif).
name:langNoProduct name. You can set names and descriptions for all languages, even if they are not activated in the webshop. Available languages (ISO 639-1): cs, da, de, el, en, es, fi, fr, it, ja, ko, nl, no, pl, pt, ro, ru, sv, tr, zh.
productIDNoA unique and user defined identifier for the product.
description:langNoProduct description. Same languages as name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure and it says almost nothing. It does not state that the product is persisted to the live catalog, what happens with duplicate productID values, whether required fields exist (0 are marked required), or what permissions are needed for a write operation.

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 five-word sentence with no padding, front-loading the core action. It is efficient, though its brevity borders on under-specification for an eight-parameter create tool.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with zero annotation coverage, no output schema, and eight parameters (none required), the description should explain defaults, required inputs, and return behavior such as whether a product ID is returned. None of that is present, leaving significant gaps relative to the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the eight parameters, including the image upload constraints and the status enum, are already well documented in the schema. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

States a specific verb and resource: "Adds a product to the catalog." That distinguishes it from create_website and from the get/update/delete_product siblings by the verb alone, though the description never names or contrasts those alternatives explicitly.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no alternatives are mentioned. An agent must infer from the sibling names that update_product handles existing products and that this tool is only for new ones.

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