Tools Catalog / WooCommerce tools / wc_create_coupon

wc_create_coupon tool reference for StifLi Flex MCP

Write
Group CouponsCapability manage_woocommerce

creates a coupon with code, discount type, amount, expiration, usage limit, individual use, and included or excluded products.

Description

creates a coupon with code, discount type, amount, expiration, usage limit, individual use, and included or excluded products.

What it is for

  • Creating promotional campaigns.

Example use case

launching a seasonal discount.

Sample prompt

Create a coupon code SPRING15 for 15 percent off, expiring in 30 days, for individual use only.

Sample response

{
  "tool": "wc_create_coupon",
  "status": "ok",
  "updated": true
}

What does wc_create_coupon do?

creates a coupon with code, discount type, amount, expiration, usage limit, individual use, and included or excluded products.

Does wc_create_coupon modify store data?

Yes. It is a write operation and can create, update, or delete data depending on arguments.

Which capability is commonly required?

It usually runs under controls compatible with manage_woocommerce and the active MCP profile.

How should wc_create_coupon be used safely?

Enable write confirmations, test in staging first, and keep changelog/rollback enabled.