Skip to main content
Glama

Create product

catalog_product_create
Destructive

Create a Stripe Product in the tenant master Connect account. Idempotent retry checks fin_products by metadata-backed lookup_key before calling Stripe. One thing sold in several forms — sizes, colors, formats — is ONE product with option axes, not one product per combination. Create the product once, then give it axes so the platform generates the combinations as variants; each variant is its own buyable product with its own SKU, price and stock. Never create "Shirt S Black", "Shirt M Black" as separate products.

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": {
      "lookup_key": "<lookup_key>",
      "name": "<name>",
      "explanation": "<explanation>",
      "account": "<account>"
    },
    "name": "catalog_product_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
skuNoOptional merchant-owned product code, e.g. "TOTE-01". Unique within the store, case-insensitively; max 64 characters. This is the merchant's own code — it is NOT lookup_key, which is the Kliv-side identifier and carries spine namespacing.
kindNoOptional product kind: which of the two admin lists this belongs on. "product" for the Products list, "plan" for the Plans list. Seeded from whether it sells on a schedule, but the merchant may move it either way.
nameYesRequired product name.
imagesNoREPLACES the product's entire photo list, in this order; the first entry becomes the cover. Use url entries only; a new product has no photos. A url entry ingests a new photo (https, JPEG/PNG/WebP); omitted or null credit means no credit. [] removes every photo. Omit to leave photos unchanged. credit is the photographer's name; for Pexels pass the photographer named by image_search.
accountYesAccount (app) UUID; call account_list to find it
image_urlsNoOptional image URLs (https) to ingest as Kliv-hosted SHA256s after product creation. First entry becomes the cover (mirrored to Stripe for stripe-test/stripe-live envs); remaining entries land as gallery attachments. Max 8 URLs. JPEG, PNG, or WebP only. Use images for credited photos.
lookup_keyYesRequired Kliv-side product identifier, at least 3 characters.
descriptionNoOptional product description.
environmentNoOptional environment uuid. Overrides environment_slug. Use it to target a specific app's sandbox (list them with sim_env_list); omit it to act on this app's own.
explanationYesWhy you are making this call, in one sentence for the user.
environment_slugNoTarget environment (live, test, or sim). Required because catalog rows are env-scoped. 'sim' means THIS app's own sandbox — each app has its own catalog. To act on a different app's sandbox, pass its uuid as 'environment' instead.
marketing_featuresNoOptional selling points shown on the pricing page — e.g. ["Keyless metal chuck", "Two-speed gearbox"].
feature_lookup_keysNoOptional feature lookup keys to attach after product creation.
default_price_currencyNoRequired when default_price_unit_amount is provided.
default_price_unit_amountNoOptional default price unit amount in the currency's minor unit (1999 is $19.99; 500 is ¥500). Creates the price with the product's own lookup_key. Like every price, it is created unpublished and therefore not on sale; publish or archive it so it no longer appears as an extra unsold option.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the target account, the retry dedup mechanism ('checks fin_products by metadata-backed lookup_key before calling Stripe'), and a non-obvious side effect: a default price 'is created unpublished and therefore not on sale'. That is meaningful behavioral context the annotations cannot express. Minor tension: the description calls the retry 'Idempotent' while idempotentHint=false, though this reads as a dedup guard rather than a claim of full idempotency, so it is not a true contradiction.

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?

Purpose and destination are front-loaded, and every sentence carries decision-relevant content rather than filler. The variant-model block runs three sentences and restates the same idea twice (axes-generate-variants, then the 'Shirt S Black' example), which could be tightened to one or two lines.

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?

For a 15-parameter destructive write with no output schema, the description covers the conceptual model, the dedup behavior, and the target account well. The remaining gap is that it never says what the call returns (product id? created price?) and doesn't flag the account/environment scoping risk that matters when writing into a tenant master account.

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 schema already carries the semantics for all 15 parameters, including the sku-vs-lookup_key distinction and the images/image_urls split. The description itself adds essentially no parameter-level meaning except referencing lookup_key in the idempotency sentence. Baseline 3 is appropriate when the schema does this much work.

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?

The first sentence names a specific verb and resource and even the destination ('Create a Stripe Product in the tenant master Connect account'), which is more than most create tools say. It also defines the unit of creation sharply: one product with option axes, not one product per combination. It loses a point because no sibling tool is named, so the boundary against catalog_product_update or catalog_feature_attach has to be inferred.

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?

It gives real usage context: create once, then add axes so the platform generates combinations, and it explicitly rules out the wrong pattern with a concrete counter-example ('Never create "Shirt S Black"...'). What it doesn't do is route the agent to a named alternative for the follow-up step (feature/axis attachment) or say when to prefer updating an existing product instead.

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