Skip to main content
Glama

woo_create_coupon

Create a WooCommerce coupon with customizable settings including discount type, amount, expiry date, usage limits, and free shipping options.

Instructions

Create a coupon

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCoupon code
discount_typeNofixed_cart
amountNo0
individual_useNo
usage_limitNo
usage_limit_per_userNo
date_expiresNoExpiry date (YYYY-MM-DD)
free_shippingNo
product_idsNo
excluded_product_idsNo
minimum_amountNo
maximum_amountNo
Behavior1/5

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

No annotations are present, so the description must bear full burden. It fails to disclose any behavioral traits such as side effects, permissions needed, or that it performs a write operation.

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

Conciseness2/5

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

The description is extremely concise (3 words) but underspecified. It lacks essential details, making it insufficient rather than efficiently concise.

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

Completeness1/5

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

Given 12 parameters and no output schema, the description provides no information about return values, error handling, or behavioral context, making it incomplete for effective tool use.

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

Parameters1/5

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

With only 17% schema description coverage, the description adds no parameter-level meaning. It does not clarify the enum options, default values, or formats beyond what the schema already provides.

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

Purpose1/5

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

The description 'Create a coupon' is a tautology, restating the tool name without adding specificity. It does not distinguish from sibling tools like woo_create_product or woo_create_customer.

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

Usage Guidelines1/5

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

No guidance is provided on when to use this tool, what prerequisites exist, or how it differs from alternatives. The description offers no context for usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cvrt-jh/wordpress-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server