# Show Some Products Only to Certain Wholesale Roles

> Limits which wholesale roles can see a set of products, like trade-only bulk packs for distributors.

- Job: [Catalog & products](https://storeagent.ai/mcp-recipes/job/catalog/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~20 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + Wholesale Suite
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/wholesale-only-products/

## The prompt

```text
Find my products matching "[bulk pack]". Show me each one with its SKU, status and price. I want them visible only to the [distributor] wholesale role. Show me the list and wait for my OK, because this replaces the current role visibility on each product. Then set it. Remind me that this does not change if retail customers can see the products, that is a separate setting.
```

## What happens when you paste it

You: Find my products matching "[bulk pack]"…

Assistant: 8 products match "bulk pack", all published. Distributor role found with 6 members. Calling: `wholesale-suite/list-wholesale-roles`, `woocommerce/products-query`, `wholesale-suite/set-product-visibility-rule`.

Assistant: This will make changes in WooCommerce. Do you want me to go ahead?

Assistant: All 8 bulk packs are now visible to the Distributor role only. Other wholesale roles no longer see them. Retail visibility is unchanged.

## Abilities this recipe calls

- **List wholesale roles** (`wholesale-suite/list-wholesale-roles`, read only, from Wholesale Suite): Lists every wholesale role with its member count and tax exempt status.
- **Find products** (`woocommerce/products-query`, read only, from WooCommerce): Finds products by name, SKU, status, type or stock status, with prices and stock.
- **Set product visibility rule** (`wholesale-suite/set-product-visibility-rule`, asks first, from Wholesale Suite): Sets which wholesale roles can see a product.

## Variations

Add one of these to the end of the prompt. Swap anything in [brackets] for your own details.

- Make these products visible to every wholesale role again.
- Use the SKUs [SKU1, SKU2] instead of a search.

## Related recipes

- [Tag Your Newest Products Consistently](https://storeagent.ai/mcp-recipes/tag-catalog.md): Gives every recent product a clean, consistent set of tags so related products stop coming up empty.
- [Get Upsell and Cross-Sell Ideas for Your Best Sellers](https://storeagent.ai/mcp-recipes/upsell-ideas.md): Works out what actually sells together, then gives you pairings for your top products, ready for the Linked Products tab.
- [Add a New Product From Your Notes](https://storeagent.ai/mcp-recipes/new-product-draft.md): Turns a few lines of notes into a draft product with a price, SKU, description and tags, ready for you to add photos and publish.

---

Part of the StoreAgent WooCommerce MCP Recipes directory: https://storeagent.ai/mcp-recipes/ (index for LLMs: https://storeagent.ai/mcp-recipes/llms.txt). Get StoreAgent free: https://app.storeagent.ai/sign-up/
