Skip to main content
Glama

woocommerce_update_coupon

Modify existing WooCommerce coupon details including discount amount, usage restrictions, expiration dates, and product eligibility to maintain accurate promotional offers.

Instructions

[UNIFIED] Update an existing WooCommerce coupon. Can update discount amount, restrictions, and expiration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteYes
coupon_idYes
codeNo
discount_typeNo
amountNo
descriptionNo
date_expiresNo
minimum_amountNo
maximum_amountNo
individual_useNo
product_idsNo
excluded_product_idsNo
usage_limitNo
usage_limit_per_userNo
limit_usage_to_x_itemsNo
free_shippingNo
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While it identifies this as an update operation, it fails to specify whether it performs partial updates (PATCH) or full replacements, what happens to omitted fields, error handling for invalid coupon_ids, or the return value structure.

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 description is brief (two sentences) but includes unnecessary metadata ('[UNIFIED]') that adds no semantic value for tool selection. The structure is front-loaded with the action but could remove the tag for clarity.

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

Completeness2/5

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

Given the high complexity (16 parameters, 0% schema coverage, no output schema, no annotations), the description is insufficient. It lacks critical details about parameter formats, authentication requirements, error scenarios, and response structures necessary for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, requiring the description to compensate significantly. While it mentions 'discount amount, restrictions, and expiration' mapping to some parameters, it fails to document the other 14 parameters including required fields (site, coupon_id), nor does it explain expected formats (e.g., date strings, comma-separated product IDs, boolean strings).

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 clearly states the tool 'Update[s] an existing WooCommerce coupon' with specific examples of updatable fields (discount amount, restrictions, expiration). It implicitly distinguishes from sibling tools like woocommerce_create_coupon and woocommerce_delete_coupon by specifying 'existing' and 'update'.

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

Usage Guidelines2/5

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

The description lists what fields can be updated but provides no explicit guidance on when to use this tool versus alternatives (e.g., when to update vs. delete and recreate), nor does it mention prerequisites like requiring a valid coupon_id.

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/airano-ir/mcphub'

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