Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Set listing attributes

set_listing_attributes
Destructive

Sets channel-defined listing attributes such as material and style on a single product, storing valid values and reporting rejected ones with reasons for correction.

Instructions

Set channel-defined listing attributes on ONE product (Material, Style, Washing Instructions and similar). Call describe_listing_attributes first to learn the field keys and their allowed values.

A PARTIAL WRITE SUCCEEDS. Send four values with one bad and the three good ones are stored while the bad one is reported — you do not have to get them all right at once. A value the channel refuses comes back in rejected with a machine-readable reason and the allowed values echoed, so you can correct it in one more turn rather than guessing. Rejections are never dropped silently.

ā›” NEVER INVENT A VALUE. Relay what the merchant told you. If you cannot get a value from them, leave it UNSET and say so — an unset field is honest, an invented one is not. Do not infer it from the product type, do not copy it from another shop, and do not pick the nearest allowed value because it looks close.

šŸ“ SIZE CHART. US apparel is graded down without one. A chart is normally rendered automatically from the fulfillment provider's real measurements, so most listings need nothing. When one IS flagged, prefer size_chart_measurements (an object — call import_size_measurements to fill it from the provider) over size_chart_template_id: the template id can only come from a human in the channel's own admin, because the channel publishes no way to list, verify or correct one.

ā›” NEVER INVENT MEASUREMENTS. They are what a buyer reads before choosing a size. Do not derive a table from the garment type, do not copy one from a similar product, and do not fill a gap with a plausible number. A malformed table is refused whole, with a reason — nothing is half-applied. A missing cell is fine and renders blank; an invented one means somebody receives a garment that does not fit.

Setting a value does NOT change the live listing on its own — the channel is updated on the next sync. Pass sync: true to push it immediately, or run sync_to_channel afterwards.

[#ef218b]

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": {
      "store_uuid": "<store_uuid>",
      "product_uuid": "<product_uuid>",
      "values": "<values>"
    },
    "name": "set_listing_attributes"
  }
}

Input Schema

NameRequiredDescriptionDefault
syncNoPush the listing to the channel immediately after storing.
removeNoField keys to clear.
valuesYesfield key -> value. Use an array for a field whose `cardinality` is "multi", and an object for one whose `value_type` is "object" (build it from that field's `channel_ref.object_schema`). Values are relayed exactly as given.
workspaceNo
store_uuidYes
product_uuidYes
integration_uuidNoOnly needed when the store has more than one connected channel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.2

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 openWorldHint=true, and the description goes well beyond them: partial-write semantics (good values stored, bad one reported in `rejected` with a machine-readable reason and echoed allowed values), no silent drops, whole-table refusal for malformed size charts, and the fact that stored values do not hit the live listing until sync. It also sets a hard honesty rule against inventing values or measurements.

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 the mandatory prerequisite call, then graded into risk sections (values, size chart, sync) that justify their length for a destructive write tool. Minor waste remains: emoji section headers and a stray trailing marker "[#ef218b]" that carries no meaning.

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

Completeness4/5

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

Very complete for a destructive, open-world mutation with no output schema: it explains the rejection shape the caller will have to react to and the deferred-sync behavior. The gap is the undocumented `remove` path — nothing tells the agent when to clear a field versus set it, or whether removal is also partial-success.

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?

With 57% schema coverage the description must compensate, and it does for the two riskiest parameters: `values` (relayed exactly, rejected values returned with reasons, missing measurement cells render blank) and `sync` (deferred vs immediate push). It says nothing about the `remove` array — how clearing a key behaves alongside writing one — and workspace/integration_uuid are left to the schema.

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 ("Set channel-defined listing attributes on ONE product") and gives concrete examples of the attribute kinds (Material, Style, Washing Instructions). The capitalized "ONE product" scoping plus the pointer to describe_listing_attributes and import_size_measurements makes it distinguishable from siblings 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 Guidelines5/5

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

Explicit sequencing guidance: call describe_listing_attributes first; prefer size_chart_measurements over size_chart_template_id because the template id can only come from a human in the channel admin; and choose between sync:true and running sync_to_channel afterwards. It also states when a size chart is needed at all ("most listings need nothing").

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools