Skip to main content
Glama

Add an article

plu_add
Idempotent

Add a new item/article to the shop catalog. Requires a title. Optional fields include price, department (deptID), VAT rate (vatID), barcode, stock, variations, and many more.

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

Input Schema

NameRequiredDescriptionDefault
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

B3.4/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-destructive, and idempotent, and the schema documents the idempotencyKey semantics in detail. The description adds little behavior beyond that, and its claim that a title is required conflicts with the schema, where only idempotencyKey is required — a notable but not annotation-level inconsistency.

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?

Two sentences, front-loaded with purpose, with no wasted preamble. The trailing 'and many more' is vague filler that could be cut or replaced with the actual constraint (e.g., the idempotencyKey requirement).

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

Completeness3/5

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

For a 30-parameter creation tool with no output schema, the description should say what is returned (e.g., the created product ID) and how retries interact with idempotencyKey beyond what the schema notes. It covers purpose and a partial field list but leaves the post-call outcome undocumented.

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 description coverage is 100% across all 30 parameters, so the baseline is 3. The description's field list (price, deptID, vatID, barcode, stock, variations) merely echoes existing schema keys and adds no format, coupling, or constraint details; the 'Requires a title' claim is the only added information and it is inaccurate.

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?

The description leads with a specific verb+resource pair ('Add a new item/article to the shop catalog'), which cleanly separates it from the sibling edit/delete tools. It stops short of naming those siblings explicitly, so it lands just below the top band.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the verb 'add' — there is no explicit statement of when to use this versus plu_edit or confirm_catalog_import, and no prerequisite or permission guidance. An agent can infer intent but gets no routing help.

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