Back to cookbook

AI Prompt to Audit Shopify Inventory and Listings via MCP

0 views Published

Make this prompt yours

Share

This is a prompt for Shopify store owners using Shopify's Admin MCP server, which connects your store's product, inventory, and order data directly to Claude, ChatGPT, Cursor, and other MCP-compatible AI tools. Instead of clicking through the Shopify admin panel product by product, you can ask the connected AI to pull your actual catalog and flag real problems — low stock, mismatched variants, missing metafields, inconsistent tagging — in one pass.

The prompt works by having the AI treat your store data like a dataset: it checks specific, named conditions (stock below a threshold, products missing required fields, tags that don't follow your naming convention) instead of giving a vague summary. This makes the output something you can act on directly, not just a general health check.

Because the Admin MCP server exposes real store data through named tools (product, inventory, and order operations), the audit reflects your actual catalog at the time you run it — not a cached or approximate view.

Prompt template

Make this prompt yours

prompt-template
130 tokens
Using the Shopify Admin MCP connection to my store, run a catalog audit with these checks: 1. Flag any product with inventory below [STOCK THRESHOLD] units. 2. Flag any product missing [REQUIRED FIELD(S), e.g. description, product type, metafield name]. 3. Flag any product whose tags don't follow this convention: [YOUR TAGGING RULE]. 4. Flag any product with variants that have mismatched or missing pricing. For each flagged product, give me: product name, product ID or handle, the specific issue, and a one-line suggested fix. Group the results by issue type, not by product.

Want it sharper? Optimize this prompt with Prompt Optimizer, check it with the Prompt Debugger or shorten it with the Token Optimizer.

Example input

example-input
137 tokens
Using the Shopify Admin MCP connection to my store, run a catalog audit with these checks: 1. Flag any product with inventory below 10 units. 2. Flag any product missing a product description or missing the "material" metafield. 3. Flag any product whose tags don't follow this convention: all tags lowercase, hyphenated, no spaces (e.g. "summer-collection" not "Summer Collection"). 4. Flag any product with variants that have mismatched or missing pricing. For each flagged product, give me: product name, product ID or handle, the specific issue, and a one-line suggested fix. Group the results by issue type, not by product.

When to use it

  • You manage a Shopify catalog with enough products that manual review in the admin panel is slow
  • You want a regular health check for low stock, missing fields, or inconsistent tagging before a sales push
  • You're cleaning up a catalog after a bulk import and need to find what broke or was left incomplete
  • You want the audit findings in a format you can hand to a team member to fix, not just a vague summary

Best practices

  • Set explicit thresholds (like "flag anything under 10 units in stock") instead of asking the AI to judge what counts as low
  • Ask for the audit grouped by issue type (stock, missing fields, tagging) so it's easy to assign and fix
  • Run this after bulk imports or seasonal catalog changes, when manual errors are most likely to have crept in
  • Have the AI output product IDs or handles alongside each flagged issue so you can locate them quickly in the admin panel

Common mistakes

  • Asking for a general "how's my store looking" review instead of specific, checkable conditions — vague prompts produce vague audits
  • Not specifying your store's tagging or naming conventions, so the AI can't tell what actually counts as inconsistent
  • Treating the audit as a one-time task instead of running it periodically, especially after imports or supplier changes
  • Skipping product IDs or handles in the output, which makes acting on the findings slower than it needs to be

FAQs

Does this require Shopify's Admin MCP server specifically, or does the Storefront MCP work too?

This audit needs the Admin MCP server, since it requires access to inventory counts, metafields, and pricing data. The Storefront MCP is built for customer-facing product discovery and doesn't expose this level of store management data.

Do I need to set up API credentials for this to work?

Yes — unlike Shopify's zero-setup Storefront MCP, the Admin MCP server requires configuring API credentials for your store before an AI tool can access product, inventory, and order data.

Which AI tools can connect to Shopify's Admin MCP server?

Shopify's MCP servers are documented to work with Claude, ChatGPT, Cursor, Perplexity, and Microsoft Copilot, among other MCP-compatible clients.

Can the AI fix these issues automatically once it finds them?

This prompt is written to only report findings, not make changes. If you want the AI to apply fixes (like updating a tag or metafield), say so explicitly and review each change before confirming it.

How often should I run this audit?

It's most useful after bulk imports, supplier catalog updates, or before a seasonal sales push, when manual data entry errors are most likely to have been introduced.

Found this prompt useful? Share it.

Share

More in Data Analysis

Data Analysis

AI Prompt to Perform Root Cause Analysis on a Sudden Metric Drop

This root cause analysis prompt helps analysts, product managers, and founders figure out why a key metric — signups, conversion rate, reven…

ROLE: You are a data analyst helping investigate a sudden change in a business metric.

CONTEXT:
- Metric: [METRIC NAME, e.g. "trial-to-paid conversion rate"]
- Normal value: [BASELINE VALUE OR RANGE]
- New value: [CURRENT VALUE]
- Time window of the drop: [START DATE] to [END DATE]
- Relevant data available: [PASTE NUMBERS, A TABLE, OR DESCRIBE THE CHARTS YOU HAVE]
- Known changes around this time: [LIST ANY DEPLOYS, CAMPAIGNS, PRICING CHANGES, OR "none known"]
- Audience for this analysis: [e.g. "engineering team", "founder", "board update"]

TASK:
1. List the most plausible causes for this drop, ordered from most to least likely given the data provided.
2. For each cause, state what evidence in the data supports or weakens it.
3. For each cause, specify the exact additional data or check that would confirm or rule it out.
4. Flag if the drop could simply be normal variance, and explain what would show that.
5. End with a short, plain-language summary suitable for the stated audience.

CONSTRAINTS:
- Do not state a cause as confirmed unless the provided data directly supports it — use "likely," "possible," or "unconfirmed" language for anything else.
- Do not invent data points that were not provided.
- Keep the hypothesis list to a maximum of 5 items.

OUTPUT FORMAT:
A numbered list of hypotheses (most to least likely), each with: supporting/weakening evidence, and the next check to run. Followed by a short summary paragraph.

Make this prompt yours

Data Analysis

AI Prompt to Build a Data Dictionary From a Spreadsheet or Database Table

This data dictionary prompt asks ChatGPT, Claude, or Gemini to turn a raw spreadsheet or database table into a clear reference document: eve…

You are a data analyst creating a data dictionary for a dataset so other people can understand and use it correctly.

Context:
- Source: [e.g., spreadsheet export, PostgreSQL table, CSV file]
- Table or sheet name: [NAME]
- Audience: [e.g., BI analysts, a new engineer, external partner]

Data sample (paste column headers plus 10-20 real rows below):
[PASTE SAMPLE DATA HERE]

Task:
For each column in the sample, produce:
1. Column name as it appears in the source.
2. Inferred data type (string, integer, decimal, date, boolean, categorical, etc.).
3. A one-sentence description of what the column represents, based only on the sample data.
4. Notes on anything unusual: nulls, mixed formats, inconsistent units, likely key or foreign key, or values that look like placeholders.
5. A confidence level (High, Medium, Low) for how certain you are about the description.

Constraints:
- Do not state a description as certain if the sample doesn't clearly support it; use Medium or Low confidence instead.
- Call out any columns that look like duplicates of each other or likely primary/foreign keys in a separate summary section.
- Keep descriptions to one sentence each.

Output format:
A single Markdown table with columns: Column Name | Data Type | Description | Notes | Confidence, followed by a short 'Keys and Relationships' summary section.

Make this prompt yours

Data Analysis

AI Prompt to Query and Analyze Supabase Data via Supabase's MCP Server

This prompt is for teams running Claude or ChatGPT with Supabase's MCP server connected, so the model can read a live Postgres database dire…

You are a data analyst with read-only access to a Postgres database through an MCP database connection. Follow these rules for every request:

ROLE
- Act as a careful analyst who verifies before concluding.

CONTEXT
- Database: [DATABASE NAME]
- Relevant tables: [TABLE NAMES, e.g. users, subscriptions, events]
- Business question: [QUESTION, e.g. how many trial users converted to paid in the last 30 days]

CONSTRAINTS
- Only run read-only SELECT queries. Never run INSERT, UPDATE, DELETE, or DDL statements.
- Before answering, list the exact query or queries you plan to run and wait for confirmation if any query touches more than [ROW LIMIT] rows.
- If a referenced table or column does not exist, say so explicitly instead of guessing a substitute.
- Show a sample of up to 5 returned rows alongside any aggregate numbers.

OUTPUT FORMAT
1. Queries run (as SQL)
2. Row counts and sample data
3. Plain-language answer to the business question
4. Any caveats about data quality or missing values

Task: [SPECIFIC ANALYSIS REQUEST]

Make this prompt yours