Skip to main content
Glama

Set Shopify Location Sync Mode

set_shopify_location_sync_mode
DestructiveIdempotent

Set the inventory sync mode (none | pull | push | both) for one mapped Shopify location. The effective inventory flow is the store-level switch AND the location mode — e.g. pushInventory on the store plus a 'pull' location means nothing is pushed for that location. A location must be mapped to a Spark warehouse before any mode other than 'none' applies; order routing is independent of this setting. All other settings are preserved. Returns the store's fresh configuration. Requires an operator (unpinned) org token with write access.

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": {
      "shopifyLocationId": "<shopifyLocationId>",
      "syncMode": "<syncMode>"
    },
    "name": "set_shopify_location_sync_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
syncModeYesInventory sync direction: none | pull | push | both.
shopifyStoreUrlNoThe store the location belongs to (e.g. 'my-store.myshopify.com'). Optional when exactly one store is configured.
shopifyLocationIdYesThe Shopify location id, as returned by get_shopify_store_settings.

Output Schema

NameRequiredDescriptionDefault
locationsNo
pullInventoryNo
pushInventoryNo
pushSalesOrdersNo
shopifyStoreUrlNo
orderStatusRulesNo
orderHistoryMonthsNo
fulfilledImportStatusNo
pickupExcludedOrderTagsNo
rebalanceInventoryOnStoreTransferNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing the auth requirement (operator/unpinned org token with write access), that all other settings are preserved, and that the fresh store configuration is returned. The destructiveHint=true annotation is given helpful nuance, though the exact blast radius of a mode change on in-flight inventory isn't spelled out.

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 action and the valid values, followed by the conditional semantics and edge cases. Four dense sentences with no filler, though the closing return/auth sentence could be tightened.

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?

For a 3-parameter mutation tool with an output schema, the definition covers prerequisites, interaction with store-level config, side-effect scope, auth, and return. An agent has everything needed to invoke it correctly; only the precise downstream effect on pending inventory movements is left unstated.

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 interpretive meaning: the syncMode value is conditional on store-level settings and on the location being mapped to a Spark warehouse, which the schema does not convey. It does not add format details for shopifyStoreUrl or shopifyLocationId beyond the schema, keeping it at 4.

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 (Set) and resource (inventory sync mode for one mapped Shopify location) and enumerates the accepted values. It also implicitly separates itself from the store-level switch referenced in the description, so an agent can tell it apart from set_shopify_store_settings without opening either schema.

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?

Gives clear context for use: the effective flow is the store-level switch AND the location mode, a location must be mapped before any mode other than 'none' applies, and order routing is unaffected. It does not explicitly name the alternative tool (set_shopify_store_settings) for changing the store-level switch, so the routing of sibling choice is implied rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources