Skip to main content
Glama

HamroLink Business OS MCP Server

commerce.create_product

Creates and adds a new product (with optional size/weight/color variants) to an e-commerce website store inventory.

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": {
      "siteId": "<siteId>",
      "name": "<name>",
      "price": "<price>"
    },
    "name": "commerce.create_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProduct name (e.g. 'Single Origin Ilam CTC Tea')
tagsNoList of tags
priceYesProduct regular price in NPR
stockNoInventory stock count
imagesNoArray of product image URLs
siteIdYesMongoDB Site ID
categoryNoProduct category (e.g. 'Tea', 'Pashmina', 'Handicrafts')
currencyNoCurrency code (default 'NPR')
variantsNoList of variant objects with name, price, offerPrice, and stock
offerPriceNoOptional discounted offer price in NPR
descriptionNoProduct description (Markdown supported)
variantTypeNoType of variants (e.g. 'ram_storage', 'ram', 'storage', 'mobile', 'size', 'color', 'weight', 'flavor', 'custom')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the write/open-world nature is known. The description adds that variants are optional and enumerates the variant axes, but says nothing about required site existence, whether the product is immediately published, or the created record's id. That is useful but thin context beyond the annotations.

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?

A single front-loaded sentence with the creation action first and the variant nuance as a parenthetical. Zero filler and nothing that could be trimmed without losing information.

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

Completeness3/5

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

For a 12-parameter mutation with no output schema, the description leaves notable gaps: no prerequisite that siteId refer to an existing site, no note on what the tool returns (product id for later update/delete), and no guidance on validation. Adequate but not complete for 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 all 12 parameters including variantType values, currency default and price units are already documented in the schema. The description's parenthetical about size/weight/color variants duplicates what the schema states, adding no new meaning.

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?

Specific verb ('Creates and adds') plus resource ('a new product') plus destination ('to an e-commerce website store inventory'), which separates it from get/update/delete siblings. It stops short of naming those siblings 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?

There is no when-to-use vs. when-not guidance: nothing says to use update_product for existing items or that the site must already exist. Usage is only implied by the phrase 'to an e-commerce website store inventory', and no prerequisites or alternatives are stated.

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.