Skip to main content
Glama

Create Vendor Price Book

create_supplier_price_book

Create a vendor price book (rate card): name, optional per-tenant-unique code, currency, active window, interpolation mode, supported run quantities (runQuantityLimits), and either the spec attribute schema that keys its quantity-break grid, kind "ItemPriced" for a flat per-SKU list, or kind "ComponentPriced" for a sum-of-components cost model. The book is created EMPTY and DRAFT (it cannot price anything until activate_price_book publishes it) — load a spec grid with append_price_book_breaks, an item-priced list with append_item_priced_rows, or component-priced rate components with append_rate_components. Always creates a shared house book; requires an operator (unpinned) org token (client-pinned tokens are refused, matching the web app where clients cannot author 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": {
      "input": "<input>"
    },
    "name": "create_supplier_price_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe book to create (supplierId + name required).
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is created 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.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the auth model (operator/unpinned org token required, client-pinned tokens refused, always a shared house book) and the empty/draft initial state. One caveat: the description says the book is created DRAFT while the schema's isActive property defaults to true, an internal tension an agent could trip over.

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 what gets created, then the lifecycle constraint, then the per-kind follow-ups — a sensible order. It is a single dense paragraph with em-dash clauses that strain readability, but no sentence is filler.

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?

Output schema and annotations exist and the schema fields are richly documented, including the mandatory two-step preview/previewReceipt/idempotencyKey flow, so the description needn't repeat it. Complete enough to call correctly, with only the isActive-vs-DRAFT ambiguity and the preview requirement left implicit at the description level.

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 and the schema already documents kind, runQuantityLimits, interpolationMode and attributeSchema thoroughly. The description adds orientation (which kind maps to which append_* tool, "leave empty for a book that prices by item") but does not add syntax or semantics beyond what the field descriptions already carry.

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+resource ("Create a vendor price book (rate card)") and immediately enumerates the contents: name, per-tenant code, currency, active window, interpolation mode, runQuantityLimits, and the three grid kinds. An agent can tell this apart from update_supplier_price_book and from the append_* siblings that populate an existing book.

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?

Strong post-creation routing: it states the book is created EMPTY and DRAFT, that it cannot price anything until activate_price_book publishes it, and which sibling loads each grid kind (append_price_book_breaks / append_item_priced_rows / append_rate_components). What it lacks is an explicit exclusion against adjacent creation tools such as create_price_list, so the agent must infer which creation path applies from domain knowledge.

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