Skip to main content
Glama

create_commerce_product

Destructive

Create a product in the store. Only title is required.

Money is an integer in the currency's smallest unit: price_amount=2999 is $29.99 for USD. To sell variations, pass options here, then call generate_commerce_variants, or pass variants explicitly alongside options.

Args: project_id: The project ID. title: Product name. Required. description: Long product description. slug: URL slug. Auto-generated from the title if empty. subtitle: Short line shown under the title. product_type: digital, download, course, template, membership, service, or physical. Physical forces one_time pricing. pricing_type: one_time, subscription, or pay_what_you_want. status: draft, active, or archived. Only active products show on the storefront. price_amount: Price in the smallest currency unit (e.g. cents). compare_at_amount: Struck-through reference price, same unit. currency: ISO currency code. Defaults to the store currency. image_url: Primary product image URL. image_alt: Alt text for the primary image. sku: SKU used when the product has no variants. checkout_url: External checkout link. Ignored for physical products. shipping_note: Shipping copy shown on the product page. requires_shipping: Whether checkout must collect a shipping address. weight_grams: Shipping weight in grams. inventory_enabled: Track stock for this product. inventory_quantity: Starting stock when there are no variants. highlights: JSON array of short selling-point strings (max 12). faqs: JSON array of {question, answer} objects (max 12). gallery: JSON array of {url, title, alt} image objects (max 12). delivery_details: JSON object {delivery_type, access_duration, access_note, refund_period, refund_policy}. social_proof: JSON object {rating, review_count, sales_count, sales_label}. seo: JSON object {title, description, image_url, canonical_url, robots}. discount: JSON object {code, percent_off, amount_off, expires_at, apply_mode, enabled, label}. options: JSON array of variation axes, max 3, e.g. [{"name":"Size","values":["S","M","L"]}]. variants: JSON array of variants. Each needs option_values naming every option, e.g. {"option_values":{"Size":"M"},"price_amount":2999,"sku":"TEE-M"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seoNo
skuNo
faqsNo
slugNo
titleYes
statusNodraft
galleryNo
optionsNo
currencyNo
discountNo
subtitleNo
variantsNo
image_altNo
image_urlNo
highlightsNo
project_idYes
descriptionNo
checkout_urlNo
price_amountNo
pricing_typeNoone_time
product_typeNodigital
social_proofNo
weight_gramsNo
shipping_noteNo
delivery_detailsNo
compare_at_amountNo
inventory_enabledNo
requires_shippingNo
inventory_quantityNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the safety profile is covered. The description still adds genuine behavioral context beyond that: slug auto-generation from title, product_type forcing pricing_type, field suppression for physical products, and storefront visibility tied to status. It doesn't cover auth/permission requirements or failure modes.

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?

Front-loads purpose and the critical money-format rule, then proceeds to a dense Args list. The list is long, but with 29 parameters at 0% schema coverage nearly every line is load-bearing; only a few entries (e.g. 'project_id: The project ID.') add little.

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?

An output schema exists, so return values need not be described. Combined with the annotations, the description covers essentially everything needed to invoke the tool correctly, including the cross-tool variants workflow. Remaining gaps are minor: error behavior, permission requirements, and create-vs-update routing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full parameter burden and does so: it documents all 29 parameters with units (price_amount in cents), conditional behavior (physical forces one_time), and concrete JSON shapes for the string-typed structured fields (options, variants, highlights, faqs, gallery, delivery_details, social_proof, seo, discount), including the max-3 options and max-12 collection limits.

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?

States a specific verb and resource ('Create a product in the store') and immediately scopes requirements ('Only title is required'). It also distinguishes itself from the confusing siblings in the commerce family by explaining when to use `options` here versus calling generate_commerce_variants or passing `variants` explicitly.

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?

Gives clear conditional guidance: money is in the currency's smallest unit, physical products force one_time pricing, checkout_url is ignored for physical products, and only active products appear on the storefront. It stops short of explicit when-not-to-use guidance (e.g., create vs update_commerce_product, or error behavior on duplicate slugs).

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