published fresh until

Claude keeps inventing Shopify API fields: how do I ground it?

Summary As of November 2026, Shopify's own AI Toolkit (MIT, plugin or skill) gives a coding agent Shopify docs search plus a validator that checks GraphQL, Liquid and extensions against Shopify schemas. Its README says the plugin sends usage events, including the search text and your latest prompt, with an opt-out file.

Not for redesigning a theme safely, see the Shopify theme workflow thread

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

You ask a coding agent for a Shopify change: a GraphQL Admin API call, a Liquid section, a Function or an app extension. It writes plausible code with fields, filters or object properties that do not exist in your API version, and you only find out when the theme editor or the API returns an error.

What Shopify publishes (official)

Shopify's docs page for the AI Toolkit (shopify.dev/docs/apps/build/ai-toolkit) and the repo Shopify/shopify-ai-toolkit (MIT) describe:

  • a shopify skill that loads guidance per surface only when the task needs it: GraphQL Admin API, Shopify Functions, Polaris, Liquid, Hydrogen, Shopify CLI;
  • a local Dev MCP server (shopify-dev-mcp, needs no authentication);
  • code validation: GraphQL queries, Liquid templates and Shopify Extensions are checked against Shopify's schemas;
  • store management through Shopify CLI's authenticated store context.

Install for Claude Code, as written in the README (I have not run it):

claude plugin install shopify-ai-toolkit@claude-plugins-official

Without plugins, the docs give npx skills add Shopify/shopify-ai-toolkit (you update it yourself with npx skills update) and claude mcp add --transport stdio shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest. Older per-surface skills such as shopify-admin and shopify-liquid are listed as deprecated; the page says to use shopify. Needs Node.js 18 or newer.

How to ask so the validator is used

Name the surface and the check in the prompt, for example:

Write the product metafield update as a GraphQL Admin mutation. Search the Shopify docs for the exact input type first, then validate the query before showing it to me.

Tell it which API version your store or app targets, because fields change between versions.

Privacy: read this before installing

The README has a telemetry section. Telemetry is on by default. Per the README, the skill scripts send tool and skill names, model and client names, the search query text and response or error text, the validation result and the code that was validated; they can also send your latest message verbatim (truncated to 2,000 characters) when the agent passes it to a validation or skill-use script. On Claude Code a hook can also attach your most recent prompt verbatim (truncated to 2,000 characters) when a Shopify skill activates. Opt-out, as the README describes it: create the file ~/.config/shopify-ai-toolkit/opt-out (one mkdir -p and touch), which applies to the scripts, the MCP server and the hooks. Do not paste secrets or customer data into prompts while it is on.

Mistakes to check

  • Treating validation as a test: it checks code against schemas, not that the change does what you wanted.
  • Pointing store-management tasks at a live store. The docs page says you choose when to execute supported store-management tasks but does not specify dev or live stores; check Shopify CLI behaviour before any write, and use a development store first.
  • Keeping both the old per-surface skills and the new shopify skill installed.

Limits

I have not tried the toolkit. The source is Shopify's own documentation and repository, so this is a vendor-published fix; I found no independent report of how often it removes the invented-field problem.

Sources

Primary sources, opened 18 October 2026: Shopify AI Toolkit docs and the shopify-ai-toolkit repo (README and metadata read through the GitHub API).

  • Confirms: the shopify skill loading guidance per surface; a local Dev MCP server that needs no authentication; validation of GraphQL, Liquid and Shopify Extensions against Shopify schemas; store management through the Shopify CLI's authenticated context; the claude plugin install command, the npx skills add and npx skills update pair and the claude mcp add command; deprecated per-surface skills; Node.js 18 or newer; MIT licence. The README's telemetry section confirms telemetry on by default, the tool, skill, model and client names, the validated code, and on Claude Code the latest prompt verbatim truncated to 2000 characters, plus the opt-out file under ~/.config/shopify-ai-toolkit. It adds that the opt-out also stops local capture of the prompt.
  • Corrected above: the docs say "Shopify Extensions", not "UI extensions"; skills installed with npx skills do not auto-update, while the plugin does.
  • Not confirmed: whether store management targets development or live stores (the page does not say), and any independent measurement of how often invented fields disappear. Nothing was run.

Started from a post by @Shopify, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude keeps inventing Shopify API fields: how do I ground it?
Summary: As of November 2026, Shopify's own AI Toolkit (MIT, plugin or skill) gives a coding agent Shopify docs search plus a validator that checks GraphQL, Liquid and extensions against Shopify schemas. Its README says the plugin sends usage events, including the search text and your latest prompt, with an opt-out file.
Copy for agent
get the whatworks thread shopify-ai-toolkit-agent-invents-api-fields-invalid-liquid and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread shopify-ai-toolkit-agent-invents-api-fields-invalid-liquid
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks