Skip to main content
Glama

Map Price Book Attribute

map_price_book_attribute
DestructiveIdempotent

Bind one price-book attribute to a canonical ITEM custom field by stable GUID during import, or atomically replace its confirmed mapping on an active book. For a closed enum, provide every exact vendor bookValue and the stable canonicalOptionId it represents. Vendor keys, labels, values, and grid rows stay unchanged; the saved adapter translates an item's option id into this book's value at pricing time. Numeric and numeric-band attributes bind to a decimal field and use an empty optionMappings list. Similar names from evaluate_price_book are suggestions only. Set confirmed true only after reviewing the complete mapping; the server validates it and activation refuses anything unconfirmed.

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>",
      "attributeKey": "<attributeKey>",
      "canonicalFieldId": "<canonicalFieldId>",
      "optionMappings": "<optionMappings>"
    },
    "name": "map_price_book_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdYesThe price book id (GUID).
confirmedNoWhether an operator has reviewed this complete mapping.
attributeKeyYesThe vendor attribute key exactly as this book stores it.
optionMappingsYesClosed enums only: every vendor bookValue paired with its canonical custom-field option id. Use [] for numeric, numeric-band, and open-enum attributes.
canonicalFieldIdYesThe canonical ITEM custom-field id (GUID).

Output Schema

NameRequiredDescriptionDefault
okNo
bookIdNo
attributeKeyNo
optionMappingsNo
canonicalFieldIdNo
mappingConfirmedNo

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?

Annotations declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, and the description supplies the missing context for these: the replacement is atomic, vendor keys/labels/values/grid rows are left unchanged, the saved adapter resolves option ids to book values at pricing time, and an unconfirmed mapping cannot be activated. It also states that the server validates the mapping, so the agent knows failures are enforced server-side rather than client-side.

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 action and scope, then requirements, side effects, and the confirmation gate in a sensible order. It is dense but every sentence carries operational information; slightly long clause chains ('or atomically replace its confirmed mapping on an active book') cost a point.

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

Completeness3/5

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

Covers the risky aspects (replacement, confirmation, enum completeness) and need not explain return values because an output schema exists. However, it says nothing about what the replacement discards, whether an existing mapping must be unbound first, or how this interacts with activate_price_book order beyond the refusal note, leaving gaps for a destructive mutation on an active book.

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 beyond the schema: canonicalOptionId is described as stable, the mapping must cover every exact vendor bookValue for closed enums ('complete mapping'), and numeric and numeric-band attributes bind to a decimal field with an empty list. It also ties the confirmed flag to an operator review step rather than leaving it as a bare default of true.

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 and resource: bind one price-book attribute to a canonical ITEM custom field, or atomically replace an existing confirmed mapping. It distinguishes itself from evaluate_price_book by explicitly calling that tool's similar names 'suggestions only', so an agent can separate the two 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear conditions: use during import to bind, or to replace a confirmed mapping on an active book; for closed enums supply every exact vendor bookValue; for numeric and numeric-band attributes bind to a decimal field with an empty optionMappings list. It does not say when to prefer adopt_price_book_attribute_key or how this relates to activation sequencing beyond the 'activation refuses anything unconfirmed' note.

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