Skip to main content
Glama

Edit an article

plu_edit
Idempotent

Edit an existing item/article in the catalog by its ID. All fields are optional except the ID. Use data_list_products to find the article ID first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the product to modify
priceNoSelling price
stockNoCurrent stock quantity
titleNoProduct display name
vatIDNoVAT rate ID for takeaway/standard sales
deptIDNoParent department ID
unitIDNoUnit of measure ID (e.g. kg, litre)
weightNoProduct weight
barcodeNoProduct barcode (EAN, QR, etc.)
caloriesNoCalorie count
positionNoDisplay position/order on keyboard
shopHideNo1 to hide from online shop, 0 to show
needPrepaNo1 if product requires kitchen preparation
discountIDNoDefault discount ID applied to this product
eatinvatIDNoVAT rate ID for eat-in sales
internalIDNoInternal reference or SKU
shortTitleNoShort label shown on receipt or keyboard
stockAlertNoLow-stock alert threshold
supplierIDNoSupplier ID
buyingPriceNoCost/buying price (for margin calculation)
descriptionNoFull product description
prepaLengthNoEstimated preparation time in minutes
activityCodeNoAccounting activity code
keyboardHideNo1 to hide from POS keyboard, 0 to show
variationID0NoVariation type ID for slot 0
variationID1NoVariation type ID for slot 1
variationID2NoVariation type ID for slot 2
variationID3NoVariation type ID for slot 3
variationID4NoVariation type ID for slot 4
consumptionDateNoExpiry/consumption date

TDQS

A4/5.0
Behavior3/5

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

Annotations already indicate idempotentHint=true and destructiveHint=false, so the description does not add significant behavioral context. It mentions 'Edit' but does not elaborate on side effects, permissions, or return behavior, which is acceptable given the annotations.

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?

The description consists of two efficient sentences: the first states the core purpose, and the second provides a critical prerequisite. Every word earns its place with no redundancy.

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?

Given the 30 parameters, no output schema, and the presence of annotations, the description is largely complete. It mentions a key prerequisite (finding the ID via data_list_products), but does not specify the return format or confirmation behavior, which would be helpful but is not critical for a standard edit tool.

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?

The schema coverage is 100% with descriptions for all 30 parameters. The description only reiterates that all fields except ID are optional, which is already clear from the required array. It adds no additional semantic value beyond the schema.

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?

The description clearly states 'Edit an existing item/article in the catalog by its ID', specifying the verb (edit), resource (item/article), and the key identifier (ID). It distinguishes from sibling tools like plu_add and plu_delete, which handle creation and deletion respectively.

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?

The description advises to 'Use data_list_products to find the article ID first', which provides clear guidance on preparation. It implicitly indicates when to use this tool (when you have an ID to modify), but does not explicitly list alternatives or when not to use it, though the sibling context covers that.

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.

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a distinct entity or action (account, client, order, product, payment, VAT, etc.), with clear naming like 'account_create' vs 'account_edit' and 'data_list_' prefixed listings. No overlapping purposes detected.

Naming Consistency5/5

All tool names use snake_case and follow a consistent verb_noun pattern (e.g., account_create, client_add, data_list_clients). Even compound names like auth_login_with_otp adhere to this structure.

Tool Count4/5

41 tools is high but justified by the wide scope of a POS/accounting system (accounts, clients, orders, products, payments, VAT, reports). Slightly above the typical range but well-scoped.

Completeness5/5

The tool surface covers CRUD for all major entities (clients, departments, products, VAT, payment modes, orders), plus queries, reports, and authentication. No obvious gaps for a small business management server.

Resources