Skip to main content
Glama

Assign Price List

assign_price_list

Assign a price list (id or code) to one customer or one customer group, as the list's Assignments tab does. Name the customer by customerId, customerEmail or exact customerName, or the group by customerGroup (id or exact name, the customer discount groups list_discounts returns). priority (default 0, lower first) orders the target's lists: a customer's own lists come before its groups', each by priority, then by list code. The preview shows every list the target then reaches, in that order. A list is assigned to a target once; an archived list cannot be assigned. A draft's assignment takes effect when it is activated. 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>"
    },
    "name": "assign_price_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
priorityNo0 or more; lower is considered first (default 0).
priceListYesThe price list id (GUID) or code.
customerIdNoThe customer's id (GUID).
customerNameNoThe customer's name (exact, case-insensitive).
customerEmailNoThe customer's email (exact, case-insensitive).
customerGroupNoA customer group's id (GUID) or exact name, instead of a customer.
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?

Goes well beyond the annotations, which only declare this is a non-read-only, non-destructive, non-idempotent write. The description discloses the required operator credential with Write + catalog.execute and Admin, the two-step preview/commit safety model, the once-per-target rule, and the deferred effect for drafts. These are exactly the operational facts an agent needs before calling a mutation.

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?

Dense but front-loaded: purpose, then target identification, then ordering, then constraints and credential requirements. Nearly every sentence carries distinct information, though the credential and ordering sentences could be trimmed slightly for readability.

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 a 9-parameter mutation with an output schema and non-trivial auth, the description covers the gaps structured fields cannot: eligibility rules, deferred draft behavior, ordering tie-breaks, and required scopes. Nothing an agent needs in order to invoke this correctly appears to be missing.

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 an extra point by adding ordering semantics the schema lacks — a customer's own lists precede its groups', each sorted by priority then list code — and by enumerating the customer identification options (customerId, customerEmail, exact customerName) versus customerGroup. Defaults are restated, which is redundant but harmless.

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 ('Assign a price list ... to one customer or one customer group') and names the surface it mirrors ('as the list's Assignments tab does'). The two mutually exclusive target modes are spelled out, so an agent can immediately tell this targets a single customer/group rather than a batch of items or a supplier price 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?

Gives clear preconditions: one assignment per target, archived lists are ineligible, and draft assignments only take effect on activation. It also points to list_discounts as the source of valid customer group values. It stops short of explicitly routing away from related tools (e.g., what to use for bulk or item-level assignment), which keeps it below a 5.

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