Skip to main content
Glama

Edit an article

plu_edit
DestructiveIdempotent

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.

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": {
      "id": "<id>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "plu_edit"
  }
}

Input 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
idempotencyKeyYesUnique ID for this operation, such as a UUID. After a timeout, retry with the same key and arguments. Use a new key for each distinct operation.
consumptionDateNoExpiry/consumption date

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A3.6/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the risky nature is known. The description adds only 'all fields are optional except the ID', and notably omits the required idempotencyKey and its retry semantics, and never says whether fields left out are cleared or preserved — a critical ambiguity for a destructive partial update.

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?

Two short sentences, front-loaded with the action and followed by the constraint and the prerequisite lookup. Nothing redundant.

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

Completeness2/5

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

For a destructive 31-parameter mutation with no output schema, the description is thin: it does not explain partial-update semantics, how hidden flags or variation slots behave, or what the response contains on success. Given the complexity and the destructive annotation, much more behavioral context is warranted.

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 the baseline is 3. The description contributes the useful partial-update framing ('all fields optional except ID'), which tells the agent it can send a subset, but adds no detail on type coercion (numbers accepted as strings) or the omitted-vs-null distinction.

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?

Specific verb+resource: 'Edit an existing item/article in the catalog by its ID.' It distinguishes itself from the sibling write tools (plu_add, plu_delete) by name and action, and the term 'article' matches the domain vocabulary used by data_list_products.

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?

Explicitly routes the agent to data_list_products to obtain the article ID before calling, which is the key prerequisite. It doesn't state when not to use this (e.g., use plu_add for new articles, plu_delete to remove), so it falls short of the full 5.

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