Skip to main content
Glama

Set product characteristics

upsert_product_attributes
DestructiveIdempotent

Add or update characteristics (name, value, unit) on ONE product without removing the ones not named. Names match case-insensitively; a new name is appended. For eBay, use the item-specific names exactly as inspect_ebay_listings reported them (details.aspects), in the eBay site's own language — 'Marca' on ebay.it, not 'Brand'. Never invent a value: ask the user. Saves through the same product-card operation as the CRM form, with a version check (on CONFLICT re-read and retry). On a product that belongs to a model: when it is the model's only article, the characteristics are the model's and change for the model; when the model has other articles, a value set here applies to this article only — a characteristic shared by every article is changed on the model card. Idempotent. The result echoes the workspace.

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": {
      "attributes": "<attributes>",
      "id": "<id>"
    },
    "name": "upsert_product_attributes"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe product id returned by search_products or get_product.
attributesYesCharacteristics to add or update. Match is case-insensitive by name; every existing characteristic not named here is preserved. Use name/value/unit objects, for example {name:'Stile',value:'Casual',unit:null}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare idempotentHint=true and destructiveHint=true, and the description adds substantial context beyond them: unnamed characteristics are preserved, names match case-insensitively, a new name is appended, saves run through the product-card operation with a version check (on CONFLICT re-read and retry), and the model-vs-article inheritance rules. This is exactly the behavioral payload annotations cannot carry.

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 preservation rule, then layered with eBay guidance and the model/article edge case. Every sentence carries semantic weight, but the single dense paragraph mixes several distinct concerns (matching, eBay sourcing, conflict retry, inheritance) with no structural break, making it heavier than it needs to be.

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 no output schema, the description covers everything an agent needs: scope, preservation semantics, matching rules, conflict/retry behavior, external-system naming requirements, model-vs-article inheritance, and the fact that the result echoes the workspace. Nothing material 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 nested attribute object is already documented. The description still adds meaning the schema does not: case-insensitive name matching, append-on-new-name semantics, and the eBay naming/language constraint on the name field. It stops short of explaining unit semantics, so it does not earn a 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?

States a specific verb+resource and scope: 'Add or update characteristics (name, value, unit) on ONE product without removing the ones not named.' The singular-product scope and non-destructive upsert behavior clearly separate it from update_product and from a price/translation upsert. An agent can identify the operation and its boundary without reading 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 Guidelines5/5

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

Explicit when/when-not and prerequisites: use eBay item-specific names exactly as inspect_ebay_listings reported them (details.aspects) in the site's own language ('Marca' on ebay.it), and never invent a value. It also routes the agent to the model card when a characteristic is shared by every article. This is unusually prescriptive and leaves little to inference.

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