Skip to main content
Glama

Append Price List Lines

append_price_list_lines
DestructiveIdempotent

Add or overwrite up to 500 prices on a price list (id or code), as the list's lines upload does. A line is an item (id or SKU), an optional uomId (omit for the base unit), a minimumQuantity where the break starts (default 1) and a unitPrice before tax; isActive=false keeps a line but stops it pricing. A line is identified by item, unit and minimum quantity: sending one that exists overwrites its price, and re-sending the same lines changes nothing, so a large list arrives in several calls and any call can be repeated. The preview says for each line whether it is added, updated (with the old price) or unchanged. On an active list the new prices apply to orders priced from the confirm on, and every change is written to the list's change log. Archived lists are frozen. Requires an operator (unpinned) credential with Write + catalog.execute and an Admin.

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": {
      "priceList": "<priceList>",
      "lines": "<lines>"
    },
    "name": "append_price_list_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesThe lines to add or overwrite, 1 to 500.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
priceListYesThe price list id (GUID) or code.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
linesNo
previewNo
expiresAtNo
priceListNo
assignmentNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo
archivedPriceListIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=true; the description goes well beyond them by explaining the composite key that triggers overwrite versus no-op, what preview returns (added/updated with old price/unchanged), the change-log write, the frozen archived state, and the exact credential requirements (operator unpinned, Write + catalog.execute, Admin). No contradiction with the declared hints.

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-loaded with the action and the 500-line cap, then ordered logically through line shape, identity semantics, preview, side effects, and permissions. Slightly over-packed as a single paragraph, with mild redundancy between 're-sending the same lines changes nothing' and 'any call can be repeated', but no sentence is wasted.

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?

An output schema exists, so return values need not be described, and everything else an agent needs is present: composite key, defaults, idempotency contract, preview/commit flow, auth requirements, and the effect on orders and the change log. Nothing material is missing for a destructive multi-line write.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds meaning the schema lacks — that a line's identity is item + unit + minimum quantity, which is what determines create-versus-overwrite, and that omitting a unit means the base unit. It also frames preview/previewReceipt as a required two-step write rather than two optional fields.

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?

States a specific verb and resource — add or overwrite up to 500 prices on a price list identified by id or code — and immediately defines the unit of work (a line = item + uom + minimumQuantity + unitPrice). An agent can distinguish this from sibling tools like append_price_book_breaks or replace_price_book_breaks because the scope and 500-line cap are named.

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 clear operating context: archived lists are frozen, an active list's new prices apply from the confirm on, and large lists should be split across calls with repeatability guaranteed. It does not explicitly name an alternative tool or state when to prefer a replace/patch sibling, so guidance is strong but not fully routing.

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