Skip to main content
Glama

ERP: Edit a product

erp_product_update
Destructive

Change an existing catalog item: name, number/article, sale price, cost (purchase price), barcode, short / full description, maker, characteristics {name: value} ("" removes one), its goods 'category' (the category name or «Parent / Child» path as in Settings → Product categories; "" removes it) and 'on_site' — false HIDES the product on the company's web shop / site, true shows it again («прибери з сайту», «сховай товар», «поверни на сайт»; the connected shop follows at its next sync). 'item' = the item as the person names it (name words, number, barcode); several matches are refused with candidates. Pass ONLY what changes. Proposed write: one card listing each field before → after. 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": {
      "item": "<item>"
    },
    "name": "erp_product_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
costNo
itemYes
nameNo
priceNo
numberNo
barcodeNo
on_siteNofalse = hide the product on the web shop / site, true = show it again.
categoryNoThe goods category to put the item in (name or «Parent / Child»); "" takes it out of its category.
descriptionNo
manufacturerNo
characteristicsNoCharacteristics as {name: value}, e.g. {"Форма": "капсули", "Кількість": "120"}. An empty value removes that characteristic.
short_descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "The goods category to put the item in (name or «Parent / Child»); \"\" takes it out of its category.",
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • addedInput schema / properties / on_site
      Added value: +{
      +  "description": "false = hide the product on the web shop / site, true = show it again.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that the call is only proposed (status='confirmation_required', action_id, plan_token) and that the actual write requires confirm_action, and it spells out the destructive side effects (on_site=false hides the product on the web shop, and the shop follows at its next sync). Semantic edge cases — empty string removes a characteristic or category — are also stated.

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 the field inventory and then the write semantics, with no filler. It is dense to the point of being crowded — the parenthetical Ukrainian intent phrases and doubled quoting («Parent / Child», "") make the middle portion hard to scan on first read.

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?

Complete enough for a destructive 12-parameter write with no output schema: the confirmation handshake, ambiguity handling, and field-level clearing rules are all present. It could add what happens on an unknown category or a partial-failure response, but nothing an agent needs to call it is missing.

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 only 25% with 12 parameters including a nested map, but the description compensates by explaining every field: what 'item' is (name words, number, barcode), that cost means purchase price, the «Parent / Child» category path syntax, and that characteristics is a {name: value} map where an empty value deletes the entry.

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 (change/edit) and resource (existing catalog item) and then enumerates the mutable fields, so an agent immediately knows this is the full-field product editor rather than the price-only or create siblings. The required 'item' selector is defined in the same breath.

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 concrete operating rules: pass ONLY what changes, refine 'item' because several matches are refused with candidates, and follow the propose → confirm_action path. It does not explicitly contrast with erp_product_set_price or erp_product_photo, so routing for a price-only edit is left implicit.

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