Skip to main content
Glama

Append Price Book Breaks

append_price_book_breaks
DestructiveIdempotent

Append price breaks to a DRAFT price book without clearing what is already there — the way to load a grid too large for one call. Max 500 breaks per call. Re-sending a chunk OVERWRITES its rungs rather than failing, so an import interrupted midway is resumed by simply re-sending from the last chunk you are sure about. Refused on an active book: use replace_price_book_breaks, which flags dependent quotes stale. Every cost-driver attribute must appear in each break's specKey or the break could never resolve. A chunk is validated against the book as it stands when the write reaches it, so if another caller renamed an attribute key or published the book while your chunk was in flight you get a VALIDATION_ERROR naming what moved — re-read with evaluate_price_book and re-key the chunk rather than re-sending it unchanged.

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": {
      "bookId": "<bookId>",
      "breaks": "<breaks>"
    },
    "name": "append_price_book_breaks"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdYesThe DRAFT price book id (GUID).
breaksYesBreaks to add (max 500): specKey (all cost-driver attribute values, e.g. {"trim": "6x9", "binding": "perfect"}), minimumQuantity, unitCost, setupCost, isActive.
expectedTotalBreaksNoOptional total rows expected in the finished grid. Supply it on every chunk to receive remainingBreaks, progressPercent, and an exact next-tool recommendation.

Output Schema

NameRequiredDescriptionDefault
okNo
addedNo
bookIdNo
updatedNo
nextActionNo
totalBreaksNo
maxRowsPerChunkNo
progressPercentNo
remainingBreaksNo
processedInChunkNo
expectedTotalBreaksNo
recommendedNextToolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the 500-break cap, the overwrite-not-fail semantics of re-sending a chunk (which explains the idempotentHint=true), refusal on active books, and the fact that validation happens against the book state at write time, so concurrent renames or publishes produce a VALIDATION_ERROR. It also warns that re-sending unchanged is the wrong recovery, which is a non-obvious behavioral trait no annotation conveys.

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-loads the what and the size limit, then moves through overwrite semantics, the active-book exclusion, specKey requirements, and error recovery in a logical order. It is dense and long for a single paragraph, but nearly every sentence carries operational information; only the expectedTotalBreaks sentence restates schema content.

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 explained, and the description still covers limits, destructive-overwrite behavior, concurrency/validation timing, and the correct recovery action. For a destructive mutation with chunked writes, an agent has everything needed to call it and to handle the failure modes.

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 baseline is 3, but the description adds a real constraint the schema only hints at: every cost-driver attribute must appear in each break's specKey or the break can never resolve. The expectedTotalBreaks progress feedback is also restated, though that is largely duplicative of the schema field description.

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?

Opens with a specific verb and resource (append price breaks to a DRAFT price book) plus the scoping condition 'without clearing what is already there', and explicitly names the sibling it is not (replace_price_book_breaks). An agent can distinguish it from replace_price_book_breaks and append_price_list_lines without opening a schema.

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

Usage Guidelines5/5

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

States the positive case (load a grid too large for one call), the negative case (refused on an active book, use replace_price_book_breaks), and the resume protocol (re-send from the last chunk you are sure about). The recovery path on VALIDATION_ERROR is spelled out with the alternative tool (evaluate_price_book).

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