Skip to main content
Glama

Update Vendor Price Book

update_supplier_price_book
DestructiveIdempotent

Update a vendor price book by id with FULL-REPLACE semantics (identical to the web app's edit form): the supplied payload becomes the book's whole metadata state, so omitted optional fields are cleared/defaulted, not preserved — except leadTimeRules and runQuantityLimits, where null keeps the book's current value (send [] or {"minimum": null, "maximum": null} to clear them). Client attribution is immutable. Changing the schema's cost-driver key set while the book has breaks is refused (it would orphan the grid) — replace the grid via replace_price_book_breaks instead. A client-pinned token can only update its own client's books, never the shared house books.

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>",
      "input": "<input>"
    },
    "name": "update_supplier_price_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe book's full replacement state (supplierId + name required; omitted optional fields clear, except null leadTimeRules / runQuantityLimits, which keep the current value).
bookIdYesThe price book id (GUID) to update.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is changed until the commit call.
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
bookNo
previewNo
expiresAtNo
nextActionNo
actionItemIdNo
confirmationNo
appliedUpdateNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
maxRowsPerChunkNo
idempotentReplayNo
recommendedNextToolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=true, but the description adds what actually gets destroyed: the payload becomes the book's whole metadata state, omitted optional fields are cleared/defaulted, and client attribution is immutable. It also carves out the two exceptions (leadTimeRules and runQuantityLimits keep current values on null) with the exact clear syntax, and explains the refusal condition and its consequence (orphaned grid). This is materially more than the annotations convey.

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?

Every sentence carries distinct, load-bearing information — replace semantics, exceptions, immutability, the refusal-and-alternative, and the auth scope — with the most important rule (full replace) front-loaded. The only structural weakness is that it is one dense unbroken paragraph bundling several separate constraints, which makes scanning harder than a short bulleted layout would.

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?

For a destructive write with a deeply nested schema and an output schema present, the description covers the highest-risk facts: full-replace loss of omitted fields, the two preservation exceptions, the immutable field, the refusal path, and token scoping. The notable gap is that the required two-step preview-then-commit flow (preview flag, previewReceipt plus idempotencyKey) is only visible in the parameter descriptions, not stated in the prose where an agent would look first.

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; the description earns above that by stating the cross-cutting null-vs-omitted rule at the top level, which is otherwise only discoverable by reading many nested field descriptions individually. It adds the clear syntax for the two preserved fields ([] or {"minimum": null, "maximum": null}). It does not add meaning to bookId, preview, or previewReceipt, which the schema already documents.

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 opens with a specific verb plus resource ("Update a vendor price book by id") and immediately qualifies the semantics as FULL-REPLACE, with an analogy to the web app's edit form. It also names the sibling it is not (replace_price_book_breaks) for the grid case, so an agent can tell it apart from neighboring tools without opening any 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?

Explicit routing is given: if you are changing the cost-driver key set on a book that already has breaks, this tool refuses and you must use replace_price_book_breaks instead. It also states the auth boundary — a client-pinned token can only touch its own client's books, never shared house books — which tells the agent when this call will fail before it is attempted.

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