Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

products_update

Idempotent

Update an existing product by UUID, changing only the fields you provide. Use it to assign product codes or SKUs, fix names, adjust default prices, or clear fields such as code.

Instructions

Update an existing product by UUID. All fields are optional — only provided fields are changed. Useful for assigning product codes (so sales can be grouped per plan/SKU), fixing names, or adjusting default prices on sync-created products. Pass code=null to clear a code.

Input Schema

NameRequiredDescriptionDefault
codeNoProduct code / SKU. Pass null to clear the existing code.
nameNoProduct name
uuidYesProduct UUID to update
colorNoOptional hex colour swatch shown on the POS product grid (e.g. "#1e40af"). Six-digit hex with or without leading "#"; pass null to clear.
ncCodeNoNC (Nomenclatura Combinata) code
cpvCodeNoCPV code for public procurement
vatRateNoVAT rate percentage (e.g. 19 for 19%)
currencyNoISO 4217 currency code
isActiveNoWhether the product is active
companyIdNoCompany UUID override (uses active company if not set)
sgrAmountNoRomanian SGR (Sistem Garantie-Returnare) deposit per unit, e.g. 0.50 for plastic beverage bottles. Null clears it. The POS auto-injects a single VAT-exempt deposit line summing all SGR product quantities.
categoryIdNoUUID of a product_category for POS grid grouping; pass null to clear.
descriptionNoProduct description
defaultPriceNoDefault unit price
unitOfMeasureNoUnit of measure code (e.g. "buc", "ore", "kg")
vatCategoryCodeNoVAT category code (e.g. "S", "Z", "E")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (not read-only, idempotent, non-destructive). The description adds genuinely useful behavior: partial-update semantics ('all fields are optional — only provided fields are changed') and the null-clearing convention, which is not obvious from the annotations alone. It remains silent on validation failures or permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, identity and partial-update contract front-loaded, then use cases, then the null edge case. The parenthetical about grouping sales per plan/SKU justifies its length.

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 16-parameter mutation tool with full schema coverage, no output schema, and annotations carrying safety, the description supplies exactly the missing pieces: partial update, null-clearing, and realistic usage contexts. Nothing an agent needs to call it correctly is absent.

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 coverage is 100%, so every parameter including null-clearing is already documented in the schema. The description reinforces the partial-update and code=null behavior but adds no parameter detail the schema lacks, so baseline 3 is appropriate.

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?

States a specific verb and resource ('Update an existing product by UUID'), which is unambiguous against products_list/products_get and the category tools. It never names a sibling explicitly, but the resource is narrow enough that confusion is unlikely.

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 use cases (assigning SKUs so sales group per plan, fixing names, adjusting prices on sync-created products), which tells an agent when this is the right call. It does not say when to reach for products_get or product_categories_update instead, so there is no explicit exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools