Skip to main content
Glama

Restore Price Book

restore_price_book
Idempotent

Restore an archived (soft-deleted) price book so it can price quotes and runs again. The book and its grid reappear in lists and the resolve path accepts them. Two-step: preview=true shows the book and what references it and returns a single-use previewReceipt; repeat the call with that receipt and a fresh idempotencyKey to restore. 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": "restore_price_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdYesThe archived price book id (GUID) to restore.
previewNoStep 1 of the required two-step write: set true to see the book being restored 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 restore.

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.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and idempotentHint=true; the description adds the genuinely non-obvious behavior: a mandatory two-step preview/commit protocol, a single-use previewReceipt, the requirement for a fresh idempotencyKey on commit, and that nothing changes until the commit call. It also discloses the credential class needed, 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.

Conciseness4/5

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

Front-loaded with the outcome, then the two-step mechanics, then the auth requirement — a logical order with no filler. It is dense, with three distinct ideas packed into the middle sentences, but every sentence carries information an agent needs to call it correctly.

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 mutation tool with a preview/commit protocol, the description covers the effect, the two-call sequence, the single-use receipt constraint, idempotency, and credential requirements. An output schema exists, so return values need not be explained, and nothing essential to a correct invocation is 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 baseline is 3, but the description adds meaning the schema states only per-field: how preview, previewReceipt and idempotencyKey interlock across two calls. It does not add format/syntax detail for bookId beyond the schema, so it sits at 4 rather than 5.

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?

Specific verb + resource + precondition: 'Restore an archived (soft-deleted) price book'. It also states the post-condition effect (the book and its grid reappear in lists, the resolve path accepts them), which distinguishes this from archive_price_book and from the similarly named restore_simulation_snapshot.

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?

The precondition for use is clear — the book must already be archived/soft-deleted — and the required operator (unpinned) credential is stated. It does not explicitly name a sibling alternative or say when not to use it (e.g. use activate_price_book for a non-archived book), which keeps it just below the top score.

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