Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Add variants

add_variants
Destructive

Add color-and-size variants to an existing product and resolve provider variant IDs before syncing, with a warning for AQUA-vs-Navy mismatches.

Instructions

Add variants to an existing product (split primitive). Resolves provider_variant_ids by color+size from the product's provider options (or pass them explicitly). Warns on the AQUA-vs-Navy trap. Variants must exist before syncing.

[#c9cff4]

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": {
      "product_uuid": "<product_uuid>",
      "variants": "<variants>"
    },
    "name": "add_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
variantsYes
workspaceNo
product_uuidYes
product_ref_idNoEnables the AQUA-vs-Navy guard for BC 3001 ("71").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare write/destructive/open-world, so the safety profile is covered. The description adds non-obvious behavior beyond that: automatic resolution of provider_variant_ids from color+size, and an active "AQUA-vs-Navy" guard that will warn on ambiguous color matches. It stops short of saying whether existing variants are preserved, replaced, or rejected on duplicate color+size, which matters for a destructiveHint=true tool.

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?

Four short sentences, front-loaded with purpose then the resolution rule then the ordering prerequisite; nothing is padded. The trailing "[#c9cff4]" token is leftover markup noise that costs a perfect score.

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?

For a destructive mutation with no output schema, the description covers prerequisites and id resolution but leaves the effect on existing variants undefined — no mention of overwrite behavior, duplicate handling, or what is returned on a partial color+size failure. Annotations carry the destructive flag, but the agent still cannot predict post-call state.

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 only 25% schema description coverage, the description is doing real work: it explains that provider_variant_ids is optional and derived from color+size, and it flags the guard tied to product_ref_id. The workspace parameter and the price field receive no explanation, but the highest-ambiguity parameter is well covered.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ("Add variants to an existing product") and adds the qualifier "split primitive," which tells an agent this is a follow-up to a product-creation step. It is clear what the tool does, though it never names the sibling it is paired with or contrasted against.

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

Usage Guidelines3/5

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

"Variants must exist before syncing" supplies a useful ordering constraint, and the parenthetical gives a second invocation mode (auto-resolve or pass ids explicitly). However, there is no explicit when-to-use versus when-not, nor a named alternative for adding variants in bulk or via a collection tool.

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