Skip to main content
Glama

WooCommerce MCP Server and API by Cotlet

Create coupon in WooCommerce

woocommerce_create_coupon
Read-onlyIdempotent

Create coupon in the user's own WooCommerce account from ChatGPT, Claude or any AI agent. Returns how to do it in WooCommerce step by step (screens, buttons, fields) and opens nothing by itself; then do it with the cotlet_browser_* tools in the user's WooCommerce Cloud Browser. WooCommerce's official API: Yes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "woocommerce_create_coupon"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and closed-world scope; the description reinforces this by saying it opens nothing itself and only returns instructions. It does not say how detailed or how long the returned steps are, or whether the browser session must already be open, but for a safe read operation the gap is small.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core two clauses (returns steps, opens nothing, continue with browser tools) are front-loaded and useful, but the trailing 'WooCommerce's official API: Yes.' is ambiguous and arguably irrelevant for a tool that makes no API call, and the ChatGPT/Claude preamble adds little.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no parameters, no output schema and read-only annotations, the description supplies what an agent needs: no side effects, returned content is step-by-step UI instructions, and the follow-up tool family is named. Only the ambiguity about the misleading 'create' name and the environment prerequisites is left unresolved.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4. The description correctly implies no inputs are needed, and the empty schema is consistent with that; there is nothing further to add.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly reframes the tool: it 'Returns how to do it in WooCommerce step by step' and 'opens nothing by itself', which is the real purpose despite the misleading 'create' name. That contrast is stated well enough for an agent to understand what comes back, though the name/title still signals a mutation and a reader skimming only the first clause could be misled.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear downstream path: call this for the steps, then execute with the cotlet_browser_* tools in the WooCommerce Cloud Browser. It does not state when to skip this tool (e.g., if the agent already knows the UI) or name any other guidance tool such as cotlet_app_guide as an alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources