Skip to main content
Glama

Set Item Classification

set_item_classification
DestructiveIdempotent

Put items into categories, a brand and an item group (up to 200 items per call, by id or SKU). categoryIds replaces each item's categories (an empty list clears them); addCategoryIds / removeCategoryIds adjust them instead. brandId / groupId set the brand and group (clearBrand / clearGroup remove them); omitted parts keep each item's current value. Ids come from list_catalog_taxonomy. The preview shows each item's before→after and skips items already classified that way. A change that moves an item into or out of a discount's categories or brand updates its discounted price, as the item form does. A client-pinned credential classifies only its own items.

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": {
      "input": "<input>"
    },
    "name": "set_item_classification"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe items and the classification to apply.
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.
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
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
itemsUpdatedNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
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?

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses the concrete side effect that moves into or out of a discount's categories or brand update the discounted price, that the preview shows before→after and skips no-op items, and that a client-pinned credential only classifies its own items. These are exactly the behavioral facts an agent cannot infer from structured fields.

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 proceeds through mode semantics, id source, preview behavior, and side effects in a logical order. It is a dense single paragraph with heavy parenthetical nesting, which slightly hurts scannability but no sentence is wasted.

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, nested-object mutation tool, the definition covers the two-step write contract, the id source, no-op handling, credential scoping, and the pricing side effect. An output schema exists, so return values need no explanation; nothing an agent needs to call this correctly 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 the baseline is 3, but the description adds real meaning: the replace-vs-adjust relationship between categoryIds and add/removeCategoryIds, the clear semantics for brand and group, and the discount-price consequence of a change. The two-step previewReceipt/idempotencyKey contract is also restated in prose, which is redundant with the schema but reinforces the commit requirement.

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-plus-resource ('Put items into categories, a brand and an item group') with concrete scope: up to 200 items, identified by id or SKU. The fields it mutates (categories, brand, group) are distinct from those of siblings like set_item_images or set_item_volume_pricing, so an agent can differentiate without opening a 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 mode selection: categoryIds replaces, addCategoryIds/removeCategoryIds adjust, and omitted parts keep current values. It also routes the agent to list_catalog_taxonomy for ids and spells out the mandatory preview → commit sequence. It stops short of naming when a different tool should be used instead, which keeps it below a 5.

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