Skip to main content
Glama
camerone05

shopify-admin-mcp-server

by camerone05

Activate/Deactivate Variant Fulfilment at Locations

shopify_set_variant_locations
DestructiveIdempotent

Activate or deactivate a variant's fulfilment at multiple locations by SKU or variant GID. Deactivation discards the location's inventory for that variant.

Instructions

Turn location fulfilment ON or OFF for a variant, identified by SKU or variant GID.

  • activate: true → the location can stock and fulfil this variant (starts at 0 available; follow with shopify_set_inventory to set stock)

  • activate: false → the location no longer stocks the variant, and its stock there is discarded

Locations may be given as a GID or by name (e.g. "Melbourne Warehouse"), matched case-insensitively. Multiple locations are applied in a single call.

DEACTIVATION IS DESTRUCTIVE: it discards that location's inventory for the variant. Shopify refuses when the variant has committed stock or pending fulfilments there — check can_deactivate via shopify_get_variant_locations first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skuNoExact variant SKU
locationsYesLocations to activate or deactivate
variantIdNoVariant GID — use instead of sku when the SKU is ambiguous

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, and the description goes further, warning that deactivation discards the location's inventory and that Shopify refuses when committed stock or pending fulfilments exist. These are concrete behavioral consequences beyond what the structured fields convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the action, then uses tight bullet points for the two activate states, followed by location-matching rules and a highlighted destructive warning. Every sentence earns its place with no redundancy.

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 destructive, multi-location mutation with no output schema, the description covers identification, matching rules, batching, side effects, and failure conditions. An agent has everything needed to invoke it correctly and safely.

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: locations accept a GID or a name (e.g. "Melbourne Warehouse") matched case-insensitively, and multiple locations can be applied in one call. The activate flag semantics (starts at 0 available) also enrich the boolean beyond the schema text.

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 — turning location fulfilment ON/OFF for a variant — and specifies identification by SKU or variant GID. It is clearly distinguishable from siblings like shopify_get_variant_locations (read) and shopify_set_inventory (stock levels), not fulfilment enablement.

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?

Explicitly sequences usage: use shopify_get_variant_locations to check can_deactivate first, then follow activation with shopify_set_inventory to set stock. It names the alternative tools and the conditions that select them, leaving nothing to inference.

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