Skip to main content
Glama

Update Coupon

woo_update_coupon
Idempotent

Update an existing WooCommerce coupon.

Input Schema

NameRequiredDescriptionDefault
idYesCoupon ID to update
codeNoNew coupon code
amountNoNew discount amount
site_idNoSite ID to target (optional if you have only one connected site)
descriptionNoNew description
usage_limitNoTotal usage limit
date_expiresNoNew expiry date (ISO 8601) or null to remove
discount_typeNoNew discount type
free_shippingNoGrant free shipping
individual_useNoCannot be used with other coupons
maximum_amountNoMaximum order amount
minimum_amountNoMinimum order amount
usage_limit_per_userNoPer-customer usage limit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false, so the safety profile is covered by structured data. The description adds nothing beyond this - it doesn't explain partial-update semantics (that all fields except 'id' are optional and only supplied fields change), nor what happens on an unknown ID. With a mutation tool touching 13 fields, richer disclosure would be warranted.

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 single sentence has zero waste and is front-loaded, which is good. But it is undersized relative to the tool's complexity (13 parameters, no output schema), so 'appropriately sized' is only partially met.

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?

For a mutation tool with 13 parameters and no output schema, the description omits essential context: whether this is a partial or full update, what the response contains, and how errors (e.g., invalid coupon ID) surface. Annotations cover only the safety profile, leaving meaningful gaps.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented in the input schema, including the ISO 8601 expiry format and the enum for discount_type. The description provides no additional parameter meaning, so the baseline of 3 applies.

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 names a specific verb ('Update') and resource ('WooCommerce coupon'), which is immediately understandable. However, it does nothing to differentiate this tool from its close siblings woo_create_coupon, woo_get_coupon, and woo_list_coupons beyond the name itself.

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?

There is no guidance on when to use this tool versus woo_create_coupon or woo_get_coupon, no mention of prerequisites (e.g., the coupon must already exist), and no exclusions. The agent must infer everything from the name.

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