Skip to main content
Glama
@cmssy/mcp-server

@cmssy/mcp-server

Official

Set product tiers

set_product_tiers
Destructive

Configure B2B volume price breaks on a product so the cart and order charge the correct lower unit price as quantity increases.

Instructions

Set the record-level volume price breaks on a product (B2B quantity discounts). They price the product and every variant that defines no breaks of its own; a variant's own breaks are part of its definition, so set those with set_product_variants. A line's unit price steps down to the highest break its quantity reaches, and the cart and the order both charge that price. Prices are minor units of the default currency; breaks in an additional currency are set with set_product_currency_prices. Passing an empty array removes the breaks. increment sets the order step on the same record.

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": {
      "recordId": "<recordId>",
      "tiers": "<tiers>"
    },
    "name": "set_product_tiers"
  }
}

Input Schema

NameRequiredDescriptionDefault
tiersYesVolume breaks. Each break must be cheaper than the one below it, and cheaper than the base price. Order does not matter - they are sorted by minQty. Empty array clears them.
recordIdYesProduct record id
incrementNoOrder step (1-999): quantities must be a multiple of it (12 = buy in 12s). 1 removes the rule; omit to keep the current one. Variants inherit it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.73.2
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / increment
      Added value: +{
      +  "description": "Order step (1-999): quantities must be a multiple of it (12 = buy in 12s). 1 removes the rule; omit to keep the current one. Variants inherit it.",
      +  "maximum": 999,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / tiers / items / properties / price / description
      Previous value: -"Unit price at this quantity, minor units"New value: +"Unit price at this quantity, minor units (4900 = $49.00) - tiers are stored in minor units, unlike the base price field (major units)"
    • addedInput schema / required
      Added value: +[
      +  "recordId",
      +  "tiers"
      +]
  2. First observedv0.73.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=true; the description adds real blast-radius detail — the breaks price the product and every variant that defines none of its own, and an empty array wipes them. It also discloses downstream effect ('the cart and the order both charge that price'). It stops short of stating permission requirements or what happens to in-flight carts/orders when tiers change.

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 the core purpose and the variant/currency routing early, then mechanics. Dense but nearly every clause carries information; the trailing increment sentence is the weakest, reading as an afterthought relative to the pricing 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?

For a 3-parameter mutation with no output schema, the description covers inheritance, currency scoping, clearing semantics, and the pricing outcome for carts and orders. An agent has enough to call it correctly and to know when to hand off to a sibling.

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 meaning the schema lacks: prices are minor units 'of the default currency' (the schema only says minor units) and points to set_product_currency_prices for other currencies. The increment note ('sets the order step on the same record') reinforces but largely restates the schema's own 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: 'Set the record-level volume price breaks on a product (B2B quantity discounts).' The phrase 'record-level' plus the explicit split from variant-level breaks makes it distinguishable from set_product_variants and set_product_currency_prices without opening either 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?

Explicitly routes two alternatives: variant-specific breaks go to set_product_variants, and breaks in an additional currency go to set_product_currency_prices. It also states the clearing case ('Passing an empty array removes the breaks'), so both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools