Skip to main content
Glama

Create Price List

create_price_list

Create a customer price list, as the Price lists page does. It starts as a draft in the tenant currency and prices nothing until activate_price_list publishes it; add its prices with append_price_list_lines and give it to customers with assign_price_list. code is unique (ignoring case). validFrom and validUntil are YYYY-MM-DD tenant-local days, both included; omit for no start or no end. isNet=true means its prices are final, with no discount taken off. unlistedItemRule: none (default; an item the list does not name falls through to the next list) or percent_of_item_price with unlistedItemPercent (70 = 70% of the item's price). isTenantDefault=true makes it the list for every sale no other list prices; only one default can be active. 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": {
      "name": "<name>",
      "code": "<code>"
    },
    "name": "create_price_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesA short unique code, up to 64 characters (WHOLESALE-2026).
nameYesThe list's name, up to 200 characters.
isNetNotrue: its prices are final, no discount is taken off.
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.
validFromNoOptional first day it prices, YYYY-MM-DD.
validUntilNoOptional last day it prices, YYYY-MM-DD, included.
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.
isTenantDefaultNotrue: the list for every sale that no other list prices.
unlistedItemRuleNonone (default) or percent_of_item_price.
unlistedItemPercentNoWith percent_of_item_price: the percent of the item's price, over 0.

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
Behavior4/5

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

With only hint-level annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description carries the burden well: it discloses that the result is an inert draft in tenant currency, the case-insensitive uniqueness constraint on code, date inclusivity, and the single-active-default constraint. The one notable omission is the required two-step preview/commit write flow, which is only surfaced in the schema's preview/ previewReceipt/idempotencyKey parameter text rather than in the description itself.

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?

The content is dense and nearly every clause earns its place, with the core purpose and lifecycle front-loaded. It is delivered as a single unbroken paragraph, so the parameter semantics (isNet, unlistedItemRule, isTenantDefault) would scan faster if separated, but there is no filler.

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?

For an 11-parameter mutation with an output schema (so return values need no explanation), the description covers purpose, lifecycle, authorization, defaults, uniqueness, and date semantics. The only gap, the two-step preview/commit protocol, is fully documented in the schema parameters, so an agent has everything it needs across the two surfaces.

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 already 100%, so the baseline is 3, but the description adds genuine meaning beyond it: case-insensitive uniqueness for code, both-included date semantics, the interaction between unlistedItemRule and unlistedItemPercent (70 = 70% of item price), and the fall-through behavior of the default 'none' rule. The isNet explanation and the 'only one default can be active' constraint further clarify cross-field consequences the schema does not state.

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 and resource ("Create a customer price list") and immediately scopes it against the lifecycle siblings, naming activate_price_list, append_price_list_lines and assign_price_list. An agent can tell this apart from each of those 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?

It explicitly states the position in the workflow: the list starts as a draft that prices nothing, gets prices via append_price_list_lines, becomes live via activate_price_list, and reaches customers via assign_price_list. It also names the credential and role prerequisites (operator/unpinned, Write + catalog.execute, Admin), which is a real gating condition rather than vague advice.

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