Skip to main content
Glama

Archive Price Book

archive_price_book
DestructiveIdempotent

Archive (soft-delete) a price book: the book and its grid are hidden from lists and refuse to resolve or quote until restored. Existing run quotes that reference the book are NOT deleted — they retain their recorded price but can no longer be repriced. Reversible with restore_price_book. Requires an operator (unpinned) credential.

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": {
      "bookId": "<bookId>"
    },
    "name": "archive_price_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdYesThe price book id (GUID) to archive.
previewNoStep 1 of the required two-step write: set true to see what will be archived (break count, dependent quotes, sourcing profiles) and receive a single-use previewReceipt. Nothing is changed until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit the archive.

Output Schema

NameRequiredDescriptionDefault
okNo
appliedNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
archivedBookIdNo
idempotencyKeyNo
previewReceiptNo
restoredBookIdNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that this is a soft delete, that the book and grid disappear from lists and stop resolving/quoting, that dependent run quotes survive with their recorded price but cannot be repriced, and that an operator credential is required. These are exactly the consequences an agent needs before committing a destructiveHint=true write.

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

Conciseness5/5

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

Three tight sentences: what it does, what survives, how to undo it, plus the credential caveat. Consequences are front-loaded and nothing is redundant with the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Effects, reversibility, and auth are all covered, and the output schema and annotations carry the return and safety story. The one omission is that the description never mentions the mandatory two-step preview-then-commit flow, which is significant behavior for a destructive write even though the schema documents it.

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 the schema already explains bookId and both stages of the preview/previewReceipt/idempotencyKey flow. The description adds no additional meaning about parameters, which is the expected baseline when the schema does the work.

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+resource pair ('Archive (soft-delete) a price book') and immediately qualifies what soft-delete means in effect ('hidden from lists and refuse to resolve or quote'). It also names the inverse operation (restore_price_book), so an agent can distinguish it from activation and restoration siblings 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?

Gives explicit reversal guidance ('Reversible with restore_price_book') and a prerequisite ('Requires an operator (unpinned) credential'). It does not contrast with activate_price_book or say when archiving is the wrong choice versus deactivation, so it falls short of full when/when-not coverage.

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