Skip to main content
Glama

Sync product to store

sync_product
Idempotent

Publishes a product from your import list to a connected Shopify or WooCommerce store at your chosen absolute retail selling price, with optional per-variant prices.

Instructions

Publish a product from your import list to your connected Shopify/WooCommerce store at the selling price you choose. selling_price is the ABSOLUTE retail price in your store currency (e.g. 24.99) — NOT a markup multiplier or percentage; it must be at or above the wholesale price. For products with variants, the variation (id, dropship_id) pairs are resolved automatically (the product is added to the import list first if needed); every variant gets selling_price unless overridden in variation_prices. When the client supports it, the user is asked to confirm the product, price and wholesale cost first; if they decline, nothing is synced and the result has status 'declined' (or 'cancelled' if they dismissed the prompt). Either way the product stays in the import list. Runs asynchronously — check progress with get_sync_status. Requires HERTWILL_API_KEY.

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_id": "<product_id>",
      "selling_price": "<selling_price>"
    },
    "name": "sync_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage to publish the description in, e.g. 'EN'.
currencyNoStore currency code, e.g. 'EUR'. Defaults to the store's currency.
product_idYesCatalog product id — the import-list item's `id` (NOT its `product_id` record id).
selling_priceYesABSOLUTE selling price in your store currency (e.g. 24.99). Not a multiplier like 1.5.
variation_pricesNoOptional per-variant absolute prices, keyed by catalog variation id, e.g. {"20972": 29.99}.

Output Schema

NameRequiredDescriptionDefault
statusNo'declined' or 'cancelled' when the user did not confirm; otherwise the API's sync status.
variations_submittedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=true), the description discloses non-obvious behavior: a user confirmation prompt that can yield status 'declined' or 'cancelled', the guarantee that the product stays in the import list either way, automatic variant resolution and import-list insertion, and the HERTWILL_API_KEY requirement. This is exactly the kind of context 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?

The purpose and price semantics are front-loaded, followed by variant behavior, confirmation flow, and async/status guidance in a logical order. It is dense but each clause carries information; the absolute-price warning is stated twice (description and schema) and could be trimmed.

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 with an output schema already present, the description covers everything an agent needs: what is published, price rules, variant handling, confirmation outcomes, async polling destination, and auth requirements. Return-value details are correctly left to the output schema.

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 beyond the schema: it states selling_price must be at or above wholesale price, that every variant inherits selling_price unless overridden in variation_prices, and that variation (id, dropship_id) pairs are resolved automatically. The absolute-vs-multiplier warning largely duplicates the schema's own wording, which keeps it from 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?

The description opens with a specific verb and resource — publishing a product from the import list to a connected Shopify/WooCommerce store — which is clearly distinct from add_to_import_list (which only stages the item) and from get_product/search_products (reads). The price semantics are stated in the same breath, so an agent knows the operation is a storefront publish, not a local edit.

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?

It tells the agent this is asynchronous and to poll with get_sync_status, and it explains the fallback path when confirmation is declined. It does not explicitly say when NOT to use it (e.g. that the product must first be in the import list — it partly covers this by noting the product is added automatically), but the operating context is unambiguous.

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