Example Prompts
Ready-to-use prompts for developers using the WooCommerce MCP Server in VS Code or PhpStorm, organized by tool category.
Overview
These examples demonstrate how to interact with your WooCommerce store through natural language prompts in your IDE's AI assistant. Simply type these into GitHub Copilot Chat (VS Code) or the AI Assistant panel (PhpStorm) with the WooCommerce MCP server connected.
WordPress Content
Create a new WordPress post titled "Summer Sale 2026" with the status set to draft
and the content describing a 20% off promotion on all outdoor gear.
Get me the last 10 published WordPress posts and show their titles, dates, and slugs.
Update post ID 847 to change its status from draft to published.
Post Metadata
Get all meta data for WordPress post ID 1205 and list the key-value pairs.
Add a custom meta field called "featured_banner_url" with value
"https://cdn.example.com/banners/summer-2026.jpg" to post ID 1205.
Update the meta field "sale_end_date" on post ID 1205 to "2026-07-31".
Delete the meta field "old_tracking_code" from post ID 1205.
Products
Show me all products in the "Crossbows" category that are currently on sale,
sorted by price from lowest to highest.
Get the full details for product ID 3421 including all variations, images, and metadata.
Search for products matching "carbon fiber" with a price range between $50 and $200.
Create a new simple product called "Replacement Limb Kit" priced at $89.99 in the
"Accessories" category, with SKU "RLK-2026" and stock quantity of 150.
Update product ID 3421 to set the sale price to $149.99 and add a short description
that says "Limited time offer — save 25% on this top-rated model."
Delete product ID 9999 (it was a test product we no longer need).
Product Variations
List all variations for product ID 2100 and show their SKUs, prices, and stock levels.
Create a new variation for product ID 2100 with attributes Color: "Midnight Blue"
and Size: "Large", priced at $64.99 with 30 units in stock.
Update variation ID 5502 on product ID 2100 to reduce the price from $74.99 to $59.99
and mark it as "on backorder" instead of "in stock".
Product Attributes
List all global product attributes and show how many terms each one has.
Create a new global product attribute called "Draw Weight" with the slug "draw-weight"
that will be used for product variations.
Update the "Color" attribute to enable archives and change its sort order to "Name".
Attribute Terms
Get all terms for the "Size" attribute and show their slugs and menu order.
Add a new term "3XL" to the "Size" attribute with a description
"Triple extra large — fits chest 54-56 inches."
Delete the "Youth Small" term from the "Size" attribute since we discontinued
that size range.
Product Categories
List all product categories in a tree structure showing parent-child relationships
and the product count for each.
Create a new category called "Clearance" as a child of the "Sale" category,
with a description "End-of-season clearance items at 50%+ off."
Update the "Accessories" category to change its slug from "accessories" to
"crossbow-accessories" and update the description.
Product Tags
Show me all product tags sorted alphabetically with their product counts.
Create a new product tag called "Staff Pick" with the description
"Hand-selected favorites from our team of experts."
Delete the tag "test-tag" — it was created accidentally.
Product Reviews
Get the 10 most recent product reviews and show the product name, rating,
reviewer name, and review text.
Show me all 1-star reviews from the last 30 days so I can identify product issues.
Update review ID 892 to change its status from "hold" to "approved".
Product Metadata
Get all custom meta data for product ID 4501 and explain what each field likely does.
Add a meta field "_custom_shipping_class" with value "oversized" to product ID 4501.
Update the "_msrp_price" meta on product ID 4501 from "299.99" to "279.99".
Delete the "_deprecated_field" meta from product ID 4501.
Orders
Show me the 20 most recent orders with their status, total, customer name,
and date created.
Get the full details for order #8842 including line items, shipping address,
payment method, and any notes.
Find all orders with status "on-hold" that are older than 7 days —
these may need follow-up.
Create a manual order for customer ID 156 with product ID 3421 (qty 2)
and product ID 1087 (qty 1), using the customer's default billing/shipping address.
Update order #8842 to change its status from "processing" to "completed"
and add a tracking number in the meta data.
Order Notes
Show me all notes for order #8842 including both internal staff notes
and customer-facing notifications.
Add an internal note to order #8842 saying "Customer called — requesting
expedited shipping upgrade. Approved by manager."
Add a customer-facing note to order #8842 saying "Your order has been
upgraded to priority shipping at no extra charge!"
Order Refunds
List all refunds for order #7721 and show the amounts, reasons, and dates.
Create a partial refund of $24.99 on order #7721 for line item ID 3
with the reason "Item arrived damaged — replacement sent."
Show me all orders that have refunds from the last 30 days with their
refund totals and reasons.
Order Metadata
Get all custom meta data for order #8842 — I need to check the tracking info.
Add a meta field "_shipment_tracking_number" with value "1Z999AA10123456784"
to order #8842.
Update the "_estimated_delivery_date" meta on order #8842 to "2026-05-15".
Customers
List the top 20 customers by total spend and show their name, email,
order count, and lifetime value.
Get the full profile for customer ID 156 including billing/shipping addresses,
order history summary, and any meta data.
Find all customers who registered in the last 30 days but haven't placed an order yet.
Create a new customer with email "[email protected]", first name "Jane",
last name "Doe", and a billing address in Phoenix, AZ.
Update customer ID 156 to change their billing phone number to "(480) 555-0199".
Customer Metadata
Get all custom meta data for customer ID 156.
Add a meta field "loyalty_tier" with value "gold" to customer ID 156.
Update the "preferred_contact_method" meta for customer ID 156 from "phone" to "email".
Delete the "old_crm_id" meta from customer ID 156 — we migrated to a new system.
Shipping Zones
List all shipping zones and show their regions and assigned methods.
Create a new shipping zone called "Alaska & Hawaii" covering US states AK and HI.
Update the "Domestic" shipping zone to rename it "Continental US" and verify
its location list only includes the lower 48 states.
Shipping Methods
Show all shipping methods available for the "Continental US" zone with their
rates and settings.
Add a new flat rate shipping method to the "International" zone with a cost of $29.99
and title "International Standard (7-14 days)".
Update the free shipping method in the "Continental US" zone to require
a minimum order of $75 instead of $50.
Shipping Zone Locations
What locations (countries, states, postcodes) are assigned to shipping zone ID 3?
Update shipping zone ID 3 to add Canadian provinces Ontario (CA:ON)
and British Columbia (CA:BC).
Taxes
List all tax classes currently configured in the store.
Create a new tax class called "Reduced Rate" for items that qualify
for lower tax rates.
Show all tax rates for the "Standard" tax class, grouped by state.
Create a new tax rate of 8.6% for Arizona (state code AZ) in the "Standard" class
with priority 1 and enable it for shipping charges.
Update tax rate ID 12 to change the rate from 7.0% to 7.25% effective immediately.
Coupons
List all active coupons with their discount type, amount, usage count,
and expiration dates.
Create a new coupon "SUMMER20" that gives 20% off the entire cart,
limited to 500 uses total, expiring on 2026-08-31, with a minimum spend of $50.
Get the full details of coupon "WELCOME10" including usage restrictions,
product/category exclusions, and remaining uses.
Update coupon "SPRING15" to extend its expiration date to 2026-06-30
and increase the usage limit from 200 to 500.
Delete coupon "EXPIRED-TEST" — it's no longer valid.
Payment Gateways
List all payment gateways and show which ones are enabled, their titles,
and processing order.
Get the full configuration for the PayPal gateway including all settings fields.
Disable the "Check Payments" gateway since we no longer accept checks.
Reports
Give me a sales report for the last 30 days showing total revenue,
order count, and average order value.
Show me the top 10 best-selling products this month by quantity sold.
Generate an orders report grouped by status — how many are pending,
processing, completed, and refunded?
Which product categories generated the most revenue last quarter?
Show me a customer report — how many new vs returning customers do we have this month?
Pull the stock report and show me all products with fewer than 5 units in stock
that aren't on backorder.
Which coupons have been used the most this month and what's their total discount value?
Generate a tax report for Q1 2026 showing tax collected by jurisdiction.
Settings
List all WooCommerce settings groups available for configuration.
Show me all options in the "general" settings group — store address,
currency, selling locations, etc.
Update the store's "woocommerce_currency" setting to "CAD" (Canadian Dollar).
System Status
Run a full system status check and flag any warnings or critical issues
that need attention.
What system status tools are available, and what does each one do?
Run the "clear_transients" system tool to clean up expired transient data.
Data
What data endpoints are available in the WooCommerce data API?
List all continents and their countries that WooCommerce supports
for shipping and taxes.
Show me all available currencies with their symbols and which one is currently active.
What is the store's current currency and how is it formatted (decimals, thousand separator)?
Tips for Effective Prompts
Be Specific with IDs
When you know the exact ID of a product, order, or customer, include it directly:
"Get order #8842" is faster than "Find the order placed by [email protected] yesterday"
Use Filters
Many tools support filtering — leverage this for targeted queries:
"Show products in category 'Crossbows' with status 'publish' and stock status 'instock'"
Chain Operations
Ask the AI to perform multi-step workflows:
"Find all orders from the last week that are still in 'processing' status, then for each one show the line items and check if all products are in stock."
Request Specific Fields
Help the AI format responses by specifying what you want to see:
"List orders with columns: order number, date, customer name, total, and status"
Use Natural Date Ranges
The AI will translate natural language dates into API parameters:
"Sales report for last month" → translates to appropriate
date_minanddate_maxparameters