Skip to main content
Glama

Activate Price List

activate_price_list
DestructiveIdempotent

Publish a draft price list (id or code), as its Activate button does: from the confirm it prices the orders, invoices, quotes and storefront of the customers and groups it is assigned to (or, as the tenant default, every sale no other list prices) on the days its window covers. A new edition archives the edition it replaces in the same step. The preview names that edition and refuses a list that cannot be published: one that prices nothing (no active line and no percent rule), whose window has already ended on the tenant's today, or that would be a second active default. An archived list cannot come back. 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": "activate_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.
priceListYesThe price list id (GUID) or code.
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.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), it discloses the blast radius in detail: which records get priced, that a tenant default reprices every otherwise-unpriced sale, that the replaced edition is archived in the same step, and that archived lists are unrecoverable. It also states the two-step preview/commit requirement and the exact credential scope, which annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the action and contains no filler, but the middle passages are heavily nested ("from the confirm it prices the orders, invoices, quotes and storefront of the customers and groups it is assigned to (or, as the tenant default, every sale no other list prices) on the days its window covers"), which is hard to parse on first read and could be split into shorter statements.

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, credentialed mutation with an output schema, the description covers preconditions, side effects, refusal cases, irreversibility, and the preview/commit protocol. Nothing an agent needs in order to invoke it safely is missing.

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 description coverage is 100%, so preview, priceList, idempotencyKey, and previewReceipt are already fully documented, including the two-step write mechanics. The description adds only the incidental "id or code" note and some context on what preview validates, which is marginal over the schema; baseline 3 applies.

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 ("Publish a draft price list") and maps it to the UI analogue ("as its Activate button does"), which immediately separates it from create_price_list, assign_price_list, and archive_price_book. An agent can identify the operation and its object without opening the schema.

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 gives a clear trigger condition (a draft list that should go live) and precise refusal conditions — prices nothing, window ended, would be a second active default — plus the operator credential and Admin prerequisites. It stops short of naming sibling tools to use instead (e.g., how to build a draft first), so it is strong context without explicit 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