Skip to main content
Glama

ERP: Create a product

erp_product_create
Destructive

Create a catalog item (a product, or kind='service'): name, sale price, optional cost (purchase price), number/article (generated if not said), barcode, short and full description, maker (the BRAND written on the product — another maker's product keeps its own brand) and characteristics {name: value}; in the SAME card also its goods 'category' (an existing name / «Parent / Child» path from erp_category_list; with new_category=true a name nobody has is created with the product — «Parent / New» inside Parent), the photos the person sent to the bot ('capture_ids', the first one main) and the stock on hand now ('quantity', + 'warehouse' when the company has several). A name that already matches a catalog item is refused naming it (change that item with erp_product_update) unless distinct=true. Without 'quantity' stock starts at 0. Proposed write: one card. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "name": "<name>",
      "price": "<price>"
    },
    "name": "erp_product_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
costNo
kindNo
nameYes
priceYes
numberNoThe article ONLY when the person or the label gives one; leave it out otherwise — a short readable one (BRAND-NAME) is made.
barcodeNo
categoryNoThe goods category (name or «Parent / Child» path).
currencyNo
distinctNoThe person said it is a different product.
quantityNoHow many are in stock now.
warehouseNo
capture_idsNoPhotos the person sent to the bot (#numbers of their intake captures).
descriptionNo
manufacturerNo
new_categoryNoCreate 'category' with the product when no category has that name (only after proposing it to the person).
characteristicsNoCharacteristics as {name: value}, e.g. {"Форма": "капсули", "Кількість": "120"}. An empty value removes that characteristic.
short_descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / number / description
      Added value: +"The article ONLY when the person or the label gives one; leave it out otherwise — a short readable one (BRAND-NAME) is made."
  2. Changed5 schema fields changed
    • addedInput schema / properties / capture_ids
      Added value: +{
      +  "description": "Photos the person sent to the bot (#numbers of their intake captures).",
      +  "items": {
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "The goods category (name or «Parent / Child» path).",
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • addedInput schema / properties / new_category
      Added value: +{
      +  "description": "Create 'category' with the product when no category has that name (only after proposing it to the person).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / quantity
      Added value: +{
      +  "description": "How many are in stock now.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / warehouse
      Added value: +{
      +  "maxLength": 128,
      +  "type": "string"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the proposal protocol (returns status='confirmation_required' with action_id and plan_token, write only after confirm_action), the duplicate-name rejection behavior, the default that stock starts at 0 without quantity, and automatic article-number generation. The destructiveHint annotation is consistent with a write that ultimately creates a catalog item behind a confirmation step.

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?

Information-dense but front-loaded: the resource and required fields come first, then category/photos/stock, then the refusal rule, then the CONFIRMATION block, which is clearly marked. The long semicolon-chained sentence with nested parentheses is harder to scan than a bulleted form would be, but almost no clause is removable.

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 a 17-parameter tool with a nested characteristics object and no output schema, the description still covers the creation fields, the duplicate branch, the category-creation branch, and the exact response shape of the proposal. Nothing an agent needs in order to call it correctly and handle the confirmation step is missing.

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

Parameters4/5

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

With only 41% schema coverage, the description carries real weight: it defines manufacturer as the BRAND printed on the product (a genuinely non-obvious distinction), explains that the first capture_id is the main photo, that category accepts a «Parent / Child» path or a new name, that warehouse matters only when the company has several, and that characteristics is a {name: value} map. Currency and the exact description/short_description split are left to the schema, so it stops short of full compensation.

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?

Opens with a specific verb+resource ("Create a catalog item (a product, or kind='service')") and enumerates exactly which fields the card carries. It explicitly routes to erp_category_list for category paths and erp_product_update for the duplicate case, so an agent can distinguish it from siblings without opening any schema.

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 explicit when-to-use and when-not-to-use: a matching item name is refused and the caller should switch to erp_product_update unless distinct=true; new_category=true only 'after proposing it to the person'; number only supplied when the label gives one. It also states the mandatory confirmation handoff via confirm_action, leaving no selection ambiguity.

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