Skip to main content
Glama

Connect a Shopify store

connect_shopify_store
Idempotent

Connect the owner's Shopify store to this site so its products become the site's catalog and the site chat and WhatsApp assistant can answer product questions with each product's buy link. Usually needs ONLY the store address (shop_domain: the address shoppers visit, or the myshopify.com address): the store's public catalogue is read with no key and no Shopify app, giving products, descriptions, prices, variants, images, in stock or sold out (no stock counts) and buy links. That connection does NOT offer order status, order events or live webhooks; say so if the owner asks for them. It fails with a clear message when the store has a storefront password or has turned its public product list off. admin_token is optional, only for stores that already have an Admin API token (Shopify no longer lets owners create new admin apps): it adds stock counts, order status for verified customers and webhooks; it is tested before anything is saved, stored encrypted and never shown again; never repeat it back in your reply. webhook_secret applies only with admin_token. Reconnecting replaces the earlier connection. Then call sync_shopify_products.

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": {
      "site_id": "<site_id>",
      "shop_domain": "<shop_domain>"
    },
    "name": "connect_shopify_store"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site, from list_sites
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
admin_tokenNoOptional. Only if the owner already has a Shopify Admin API access token; leave out to connect with the store address alone
shop_domainYesThe store's address, e.g. mystore.com or my-store.myshopify.com (with admin_token: the myshopify.com address)
webhook_secretNoOptional, with admin_token only. The store's webhook signing secret, for live updates
publish_on_syncNoPublish synced products so the assistant and site can use them (default true). False imports them as drafts to review first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true). The description adds real value on top: the token is tested before saving, stored encrypted, never shown again, and must not be echoed back, and reconnecting replaces the earlier connection. However, it does not describe return shape or what happens to previously synced products on reconnect, leaving some behavioral gaps against a mutation tool.

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

Conciseness3/5

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

It is front-loaded with purpose and the minimal-path requirement, which is correct. But it is a single dense run-on paragraph packing failure modes, token handling, and webhook caveats together; splitting into short labeled clauses would make the critical 'only shop_domain is needed' fact easier to extract.

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?

With no output schema, the description carries the return-value burden and does it well, enumerating products, descriptions, prices, variants, images, in-stock/sold-out status (no counts) and buy links. It is slightly incomplete on what a reconnect does to existing catalog data, but otherwise covers the complexity of a 6-parameter connection tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents every parameter and the baseline is 3. The description adds some meaning beyond it: shop_domain is clarified as the address shoppers visit versus the myshopify.com form, and admin_token is scoped to stores that already have a token because Shopify no longer allows creating new admin apps.

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 and resource ('Connect the owner's Shopify store to this site') and immediately defines the outcome: products become the site catalog and the chat/WhatsApp assistant can answer with buy links. It is clearly separable from sync_shopify_products, which it names as the required follow-up.

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?

Gives the default path (store address only, no key, no app), the narrow condition for admin_token (only stores that already hold an Admin API token), the dependency that webhook_secret applies only with admin_token, and two explicit failure conditions (storefront password, public product list disabled). It also tells the agent what to say when the owner asks for order status or webhooks, which is a when-not case.

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