Moltline Shopify Prep

v1.2.0
com.moltlinestudio/shopify Checked 5 hours ago Published 2 months ago

Check a product CSV, handles, variant matrices and metafield keys.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

product_csv_check Product Csv Check

Check a product CSV's header row against Shopify's current columns. FREE. Catches the failure that wastes the most time: a template copied from an out-of-date guide, using column names Shopify renamed. Typical input {"header_row": ["Handle", "Title", "Body (HTML)", "Variant Price"]} returns {"ok": false, "missing_required": [], "renamed": [{"found": "Handle", "use": "URL handle"}, ...], "unrecognised": [], "verdict": "..."}. Use before an import, on the header row alone. Not for whether the values in the rows are valid: check a handle with url_handle and a metafield key with metafield_key_ch…

ParameterTypeDescription
header_row *arrayThe CSV's first row as a list of column names, exactly as written in the file, e.g. ["Handle", "Title", "Variant Price"].
modestring"new" when creating products, where Shopify requires only Title; "update" when changing existing ones, where it also requires URL handle. Default "new".

url_handle Url Handle

Turn a product title into a valid, unique Shopify URL handle. FREE. Shopify handles are lowercase, may contain letters, numbers and dashes, and may not contain spaces. Typical input {"title": "Men's Merino Wool Socks (2-Pack)"} returns {"handle": "mens-merino-wool-socks-2-pack", "valid": true, "changed": true, "collisions": []}. Use when generating handles for an import, or checking one you already have. Not for validating a whole header row: that is product_csv_check. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": "<what is wro…

ParameterTypeDescription
title *stringThe product title or a candidate handle, e.g. "Men's Merino Wool Socks".
existingHandles already used in the store or the file, so a collision can be reported and a suffixed alternative suggested. Optional.

variant_matrix Variant Matrix

Count the variants a set of options produces, and flag the ceilings. FREE. Option counts multiply, so three modest lists become a number nobody intended. Typical input {"options": {"Size": ["S", "M", "L"], "Colour": ["Black", "Navy"]}} returns {"option_count": 2, "variant_count": 6, "within_limits": true, "per_option": {"Size": 3, "Colour": 2}}. Use before building an import file, to find out whether the catalogue needs splitting into several products. Not for validating the resulting CSV's columns: that is product_csv_check. Errors: on invalid, missing, or malformed input this tool never ra…

ParameterTypeDescription
options *objectOption names mapped to their values, e.g. {"Size": ["S", "M"], "Colour": ["Black"]}. Each list needs at least one value.
list_rowsbooleanWhen true, also return every variant combination. Off by default because the list can be very large.
max_optionsintegerCeiling on distinct option names. Default 3.
max_variantsintegerCeiling to check against. Default 2048, which is the limit Shopify announced on 15 October 2025, up from 100. Override it if your plan differs.

metafield_key_check Metafield Key Check

Validate a metafield namespace and key before you define it. FREE. Shopify metafield namespaces and keys are lowercase alphanumerics and underscores; a capital letter or a dash is rejected at definition time, usually after the rest of the import has already run. Typical input {"namespace": "custom", "key": "Care-Instructions"} returns {"ok": false, "problems": ["key: dashes and capitals are not allowed"], "suggested_key": "care_instructions"}. Use when designing metafields. Not for the CSV column that carries them: that is product_csv_check. Errors: on invalid, missing, or malformed input th…

ParameterTypeDescription
key *stringThe metafield key, e.g. "care_instructions".
namespace *stringThe metafield namespace, e.g. "custom".
value_typestringThe intended metafield type, echoed back for your record, e.g. "single_line_text_field". Not validated against Shopify's type list, which changes.

bulk_price_change Bulk Price Change

Apply one pricing rule across a list of prices and show the effect. PREMIUM (license). Percentage first, then the flat amount, then rounding, stated explicitly because the order changes the answer. Typical input {"prices": [19.99, 24.5], "change_pct": 10, "charm_ending": ".99"} returns {"rows": [{"was": 19.99, "now": 21.99}, {"was": 24.5, "now": 26.99}], "total_was": 44.49, "total_now": 48.98, "uplift_pct": 10.09}. Use when repricing a catalogue before export. Not for what a price nets you after Shopify's fees: that is payout_estimate. Errors: on invalid, missing, or malformed input this too…

ParameterTypeDescription
prices *arrayCurrent prices, at least one, each greater than 0.
change_flatnumberFlat amount applied after the percentage. Default 0.
change_pctnumberPercentage change applied first, e.g. 10 to raise by 10% or -5 to cut by 5%. Default 0.
charm_endingstringForce every price to end in these cents, e.g. ".99" or ".95". Applied after rounding. Empty by default.
round_tonumberRounding increment applied last, e.g. 0.01 or 0.05. Default 0.01.

payout_estimate Payout Estimate

Estimate what actually lands in the bank after processing fees. PREMIUM (license). Typical input {"order_total": 84.5, "fee_pct": 2.9, "fee_fixed": 0.3, "orders": 120, "refund_rate_pct": 4} returns {"gross": 10140.0, "fees": 330.06, "refunds": 405.6, "net_payout": 9404.34, "effective_fee_pct": 3.26}. Use for cash-flow planning. Not as an authoritative fee schedule: rates depend on your plan, country and card mix, so pass your own. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": "<what is wrong and how to fix it>"}. Every call is r…

ParameterTypeDescription
order_total *numberValue of one order including anything the processor takes a percentage of. Must be greater than 0.
fee_fixednumberFixed fee per transaction. Default 0.30.
fee_pctnumberPercentage fee per transaction. Default 2.9 (a common published rate, not a promise about your account).
ordersintegerHow many orders to model. Default 1.
refund_rate_pctnumberShare of order value refunded, as a percentage. Default 0.