Skip to main content
Glama

Create product

well_create_product

Create a product in the current workspace: a good, a service, a plan or a collection the workspace sells or buys. A variant, a collection member or a dated price nests under a parent product.

Use this tool when the user asks to create or add a product, a service, a plan, a variant or a price.

REQUIRED: name, supply_type (good, service, plan or collection), status (draft, active or archived), availability (in_stock, out_of_stock, preorder or discontinued). Ask the user when they did not say one of these; never guess it. OPTIONAL: sku, description, unit_price (a decimal string) with its currency, parent_product_id, vendor_company_id, product_type_project_id. A price for one company or one project is a dated row under its parent: parent_product_id, valid_from (YYYY-MM-DD) and scope_company_id or scope_project_id, with valid_to to close it.

A collection has no parent, no price and no SKU. Two live products cannot share a SKU: the call then fails, and well_list_products finds the existing one.

Returns { success: true, product } on success, or { success: false, error } on failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skuNoThe seller's stock-keeping unit, unique among the workspace's live products. A collection has none.
nameYesThe product's name.
statusYesWhere the product stands: draft, active or archived. Ask the user when it is not clear.
currencyNoThe ISO 4217 currency of unit_price, e.g. EUR.
valid_toNoThe last day a dated price row holds, YYYY-MM-DD; not before valid_from.
unit_priceNoThe price as a decimal string. A stated price needs a currency. A collection has none.
valid_fromNoThe first day a dated price row holds, YYYY-MM-DD. Only for a row under a parent product.
descriptionNoA short description, at most 1000 characters.
supply_typeYesWhat the product is: good, service, plan or collection. Ask the user when it is not clear.
availabilityYesWhether the product can be had: in_stock, out_of_stock, preorder or discontinued. Ask the user when it is not clear.
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which.
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.
idempotency_keyNoOptional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation.
workspace_scopeNoRestrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.
scope_company_idNoThe company a dated price row applies to. Needs parent_product_id and valid_from.
scope_project_idNoThe project a dated price row applies to. Needs parent_product_id and valid_from.
parent_product_idNoThe product this one nests under (a variant, a collection member, or a dated price row).
vendor_company_idNoThe company that supplies the product.
product_type_project_idNoThe project that stands for the product's type.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
productNo
successYes
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
newly_connectedNoTools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources