Skip to main content
Glama

Set Item Volume Pricing

set_item_volume_pricing
DestructiveIdempotent

Replace one item's volume price tiers (by id or SKU) with the list given: each tier is a minimum order quantity (greater than zero, unique) and the unit price from that quantity up. Tiers not in the list are removed; an empty list removes them all. The preview shows the tiers before→after with % off list and warns when a tier is not below the list price. A client-pinned credential prices only its own items. Requires the Admin role in the app.

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": {
      "item": "<item>",
      "tiers": "<tiers>"
    },
    "name": "set_item_volume_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesThe item id (GUID) or SKU.
tiersYesThe complete tier list (max 50); an empty list removes every tier.
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.
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
tiersNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

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?

Beyond the destructiveHint annotation, the description spells out exactly what is destroyed (any tier not in the submitted list, and all tiers for an empty list). It adds behavior annotations don't cover: the preview's before→after diff with % off list, the warning when a tier is not below list price, and the refusal of commit calls lacking a previewReceipt.

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 core replace action and its destructive scope are front-loaded, and the remaining sentences on preview, credentials, and role all carry information. It is dense and long for a description, but no sentence is 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 a destructive, two-step write with its own output schema, everything an agent needs is present: replacement semantics, validation constraints, the preview-then-commit requirement, authorization, and credential scoping. Return values need no explanation since an output schema exists.

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, but the description adds real meaning: the tier semantics of "unit price from that quantity up" and the requirement that minimum quantities be greater than zero and unique per item. The preview/commit pairing is described as a workflow, which clarifies why previewReceipt and idempotencyKey exist together.

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 first sentence gives a specific verb and resource with scope: "Replace one item's volume price tiers (by id or SKU) with the list given." The replace-versus-append semantics are explicit, which also separates it from sibling tools like get_item_pricing or append_item_priced_rows.

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?

It states concrete preconditions for use: the Admin role requirement, the client-pinned credential restriction, and the mandatory two-step preview/commit flow. It does not name an alternative tool for simply reading current tiers (e.g. get_item_pricing), so the routing guidance is strong on prerequisites but not on alternatives.

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