Skip to main content
Glama

Rename Price Book Attribute

adopt_price_book_attribute_key
DestructiveIdempotent

Rename one vendor attribute key on a DRAFT price book, rewriting and rehashing every price break that carries it. This is optional schema cleanup; it does NOT bind the attribute to an item field. Use map_price_book_attribute for the authoritative canonical field and option mapping. Draft only — activation freezes keys because saved sourcing profiles and break hashes then depend on them.

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>",
      "fromKey": "<fromKey>",
      "toKey": "<toKey>"
    },
    "name": "adopt_price_book_attribute_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
toKeyYesThe replacement vendor-side machine key. This does not create a canonical mapping.
bookIdYesThe DRAFT price book id (GUID).
fromKeyYesThe attribute key as the book currently spells it.

Output Schema

NameRequiredDescriptionDefault
okNo
toKeyNo
bookIdNo
fromKeyNo
attributeKeysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real substance beyond them: the blast radius (every price break carrying the key is rewritten and rehashed), the state precondition (draft only), and the reason keys freeze at activation (saved sourcing profiles and break hashes depend on them). This tells an agent exactly what it is about to change and why it cannot be undone later.

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 sentences, front-loaded with the action and its cost, then the disambiguation from the sibling, then the draft-only constraint. Every clause carries information an agent needs; nothing is repeated from the schema or annotations.

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, draft-scoped mutation the description covers scope of change, preconditions, the alternative tool, and the consequence of deferring the rename past activation. An output schema exists, so return-value detail is correctly omitted.

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 coverage is 100%, so all three parameters already carry descriptions, including the note that toKey does not create a canonical mapping. The description reinforces the non-canonical nature of the rename but adds no syntax, format, or validation detail beyond the schema, so 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?

States a specific verb and resource ('Rename one vendor attribute key on a DRAFT price book') and immediately scopes the side effect ('rewriting and rehashing every price break that carries it'). It explicitly separates itself from the sibling map_price_book_attribute by declaring it does NOT bind the attribute to an item field.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit when-to-use ('optional schema cleanup'), when-not-to-use ('does NOT bind the attribute to an item field'), and names the correct alternative for the other case ('Use map_price_book_attribute for the authoritative canonical field and option mapping'). The draft-only precondition is stated with the reason (activation freezes keys).

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