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, in any language ("Ajoute le produit Audit SEO à 1 200 € HT"). It adds a row to the catalog: it never drafts an invoice or an invoice line, and it asks for no customer.

REQUIRED: name, supply_type (good, service, plan or collection), status (draft, active or archived), availability (in_stock, out_of_stock, preorder or discontinued). Read these values from the user's words when the words make them plain. A product the user adds with no status word is status active; a draft or an archived product needs the user's word. Work billed by the job, the day or the hour (an audit, a consulting day, a training) is a service: supply_type service, stock_tracked false, availability in_stock. A service with a name and a price is a complete order: on WhatsApp it saves at once, with no card and no question. For a physical good, the words rarely say whether it is in stock: ask that one value before the create, and ask for nothing else. OPTIONAL: sku, description, unit_price (a decimal string) with its currency, parent_product_id, vendor_company_id, product_type_project_id, stock_tracked (false for a service or a product made to order, whose own availability then stands). 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

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. It is the value stored when the product is created; a product with stock records shows the availability its stock decides.
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.
stock_trackedNoWhether the stock decides the availability shown. Default true. Pass false for a service or a product made to order: its own availability then stands.
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

NameRequiredDescriptionDefault
codeNo
errorNo
productNo
successYes
reply_linesNo
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
near_candidatesNo
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.
near_candidates_truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed35 schema fields changed
    • removedInput schema / properties / valid_from / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / valid_from / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / valid_to / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / valid_to / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / code
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / near_candidates
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "company_id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "company_id",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / near_candidates_truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / product / properties / availability_correction / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "at": {
      -        "type": "string"
      -      },
      -      "by_person_id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "value": {
      -        "enum": [
      -          "in_stock",
      -          "out_of_stock",
      -          "preorder",
      -          "discontinued"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "value",
      -      "by_person_id",
      -      "at"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "at": {
      +        "type": "string"
      +      },
      +      "by_person_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "value": {
      +        "enum": [
      +          "in_stock",
      +          "out_of_stock",
      +          "preorder",
      +          "discontinued"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "value",
      +      "by_person_id",
      +      "at"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / product / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / master_product_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / master_product_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / parent_product_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / parent_product_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / product_type_project_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / product_type_project_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / scope_company_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / scope_company_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / scope_project_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / scope_project_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / sku / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / sku / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / stock_quantity / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / stock_quantity / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / unit_price / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / unit_price / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / updated_at / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / updated_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / valid_from / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / valid_from / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / valid_to / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / valid_to / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / vendor_company_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / vendor_company_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / reply_lines
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / product / properties / billing_interval
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "daily",
      +        "weekly",
      +        "monthly",
      +        "bimonthly",
      +        "quarterly",
      +        "yearly",
      +        "one_time"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / product / required
      Previous value: -[
      -  "product_id",
      -  "name",
      -  "sku",
      -  "description",
      -  "supply_type",
      -  "status",
      -  "availability",
      -  "availability_correction",
      -  "stock_tracked",
      -  "stock_quantity",
      -  "unit_price",
      -  "currency",
      -  "parent_product_id",
      -  "vendor_company_id",
      -  "scope_company_id",
      -  "scope_project_id",
      -  "product_type_project_id",
      -  "master_product_id",
      -  "valid_from",
      -  "valid_to",
      -  "category_ids",
      -  "synced",
      -  "hidden",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "product_id",
      +  "name",
      +  "sku",
      +  "description",
      +  "supply_type",
      +  "status",
      +  "availability",
      +  "availability_correction",
      +  "stock_tracked",
      +  "stock_quantity",
      +  "unit_price",
      +  "currency",
      +  "billing_interval",
      +  "parent_product_id",
      +  "vendor_company_id",
      +  "scope_company_id",
      +  "scope_project_id",
      +  "product_type_project_id",
      +  "master_product_id",
      +  "valid_from",
      +  "valid_to",
      +  "category_ids",
      +  "synced",
      +  "hidden",
      +  "created_at",
      +  "updated_at"
      +]
  3. Changed3 schema fields changed
    • addedOutput schema / properties / product / properties / category_ids
      Added value: +{
      +  "items": {
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • addedOutput schema / properties / product / properties / master_product_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / product / required
      Previous value: -[
      -  "product_id",
      -  "name",
      -  "sku",
      -  "description",
      -  "supply_type",
      -  "status",
      -  "availability",
      -  "availability_correction",
      -  "stock_tracked",
      -  "stock_quantity",
      -  "unit_price",
      -  "currency",
      -  "parent_product_id",
      -  "vendor_company_id",
      -  "scope_company_id",
      -  "scope_project_id",
      -  "product_type_project_id",
      -  "valid_from",
      -  "valid_to",
      -  "synced",
      -  "hidden",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "product_id",
      +  "name",
      +  "sku",
      +  "description",
      +  "supply_type",
      +  "status",
      +  "availability",
      +  "availability_correction",
      +  "stock_tracked",
      +  "stock_quantity",
      +  "unit_price",
      +  "currency",
      +  "parent_product_id",
      +  "vendor_company_id",
      +  "scope_company_id",
      +  "scope_project_id",
      +  "product_type_project_id",
      +  "master_product_id",
      +  "valid_from",
      +  "valid_to",
      +  "category_ids",
      +  "synced",
      +  "hidden",
      +  "created_at",
      +  "updated_at"
      +]
  4. Changed2 schema fields changed
    • addedOutput schema / properties / product / properties / hidden
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / product / required
      Previous value: -[
      -  "product_id",
      -  "name",
      -  "sku",
      -  "description",
      -  "supply_type",
      -  "status",
      -  "availability",
      -  "availability_correction",
      -  "stock_tracked",
      -  "stock_quantity",
      -  "unit_price",
      -  "currency",
      -  "parent_product_id",
      -  "vendor_company_id",
      -  "scope_company_id",
      -  "scope_project_id",
      -  "product_type_project_id",
      -  "valid_from",
      -  "valid_to",
      -  "synced",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "product_id",
      +  "name",
      +  "sku",
      +  "description",
      +  "supply_type",
      +  "status",
      +  "availability",
      +  "availability_correction",
      +  "stock_tracked",
      +  "stock_quantity",
      +  "unit_price",
      +  "currency",
      +  "parent_product_id",
      +  "vendor_company_id",
      +  "scope_company_id",
      +  "scope_project_id",
      +  "product_type_project_id",
      +  "valid_from",
      +  "valid_to",
      +  "synced",
      +  "hidden",
      +  "created_at",
      +  "updated_at"
      +]
  5. Changed6 schema fields changed
    • changedInput schema / properties / availability / description
      Previous value: -"Whether the product can be had: in_stock, out_of_stock, preorder or discontinued. Ask the user when it is not clear."New value: +"Whether the product can be had: in_stock, out_of_stock, preorder or discontinued. Ask the user when it is not clear. It is the value stored when the product is created; a product with stock records shows the availability its stock decides."
    • addedInput schema / properties / stock_tracked
      Added value: +{
      +  "description": "Whether the stock decides the availability shown. Default true. Pass false for a service or a product made to order: its own availability then stands.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / product / properties / availability_correction
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "at": {
      +          "type": "string"
      +        },
      +        "by_person_id": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "value": {
      +          "enum": [
      +            "in_stock",
      +            "out_of_stock",
      +            "preorder",
      +            "discontinued"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "value",
      +        "by_person_id",
      +        "at"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / product / properties / stock_quantity
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / product / properties / stock_tracked
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / product / required
      Previous value: -[
      -  "product_id",
      -  "name",
      -  "sku",
      -  "description",
      -  "supply_type",
      -  "status",
      -  "availability",
      -  "unit_price",
      -  "currency",
      -  "parent_product_id",
      -  "vendor_company_id",
      -  "scope_company_id",
      -  "scope_project_id",
      -  "product_type_project_id",
      -  "valid_from",
      -  "valid_to",
      -  "synced",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "product_id",
      +  "name",
      +  "sku",
      +  "description",
      +  "supply_type",
      +  "status",
      +  "availability",
      +  "availability_correction",
      +  "stock_tracked",
      +  "stock_quantity",
      +  "unit_price",
      +  "currency",
      +  "parent_product_id",
      +  "vendor_company_id",
      +  "scope_company_id",
      +  "scope_project_id",
      +  "product_type_project_id",
      +  "valid_from",
      +  "valid_to",
      +  "synced",
      +  "created_at",
      +  "updated_at"
      +]
  6. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations: it states defaults applied silently (a product with no status word becomes active), the WhatsApp path that saves with no card or confirmation question, the SKU-uniqueness failure mode, and the exact envelope returned on success and failure. The one-question policy for physical goods ('ask that one value before the create, and ask for nothing else') is behavioral guidance the annotations cannot convey.

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-loaded with purpose then usage, and the REQUIRED/OPTIONAL caps-labelled blocks make scanning easy for a 20-parameter tool. Slightly long: the 'service with a name and a price is a complete order' sentence carries WhatsApp-channel color that could be trimmed without loss.

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

Completeness5/5

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

For 20 parameters, four enums and nesting rules, the description covers what an agent must infer: required values and their defaults, the one clarifying question allowed, variant/price nesting, and the success/failure shape. An output schema exists, so the brief return-value sentence is sufficient rather than necessary.

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 coverage is already 100%, so the description only had to avoid contradicting it — instead it adds inference rules the schema lacks: job/day/hour-billed work maps to supply_type=service with stock_tracked=false and availability=in_stock, a collection takes no parent, price or SKU, and per-company prices are dated rows. These are decision heuristics, not restatements of field descriptions.

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?

Names a specific verb and resource and immediately scopes the resource: 'a good, a service, a plan or a collection the workspace sells or buys'. It also draws the boundary against invoice-creation siblings in the same breath ('never drafts an invoice or an invoice line, and it asks for no customer'), which is the main confusion risk among these tools.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('when the user asks to create or add a product, a service, a plan, a variant or a price, in any language') with a multilingual example, an explicit exclusion (invoicing), and names an alternative for the failure case ('well_list_products finds the existing one'). The nested-row rule (parent_product_id + valid_from + scope) tells the agent which arguments a variant or dated price needs rather than sending it to a sibling.

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