Skip to main content
Glama

woo_list_coupons

List published WooCommerce coupons for a site, with search and pagination options to review available promotions.

Instructions

List published WooCommerce coupons

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>"
    },
    "name": "woo_list_coupons"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default 1)
siteYesSite id (see list_sites)
searchNoSearch term
per_pageNoCoupons per page (default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv3.14.0
    • removedInput schema / properties / page / default
      Removed value: -1
    • addedInput schema / properties / page / description
      Added value: +"Page number (default 1)"
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / per_page / default
      Removed value: -20
    • addedInput schema / properties / per_page / description
      Added value: +"Coupons per page (default 20)"
    • changedInput schema / properties / per_page / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / search / default
      Removed value: -""
    • addedInput schema / properties / search / description
      Added value: +"Search term"
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "site"
      +]
  3. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. The word 'published' is a useful hint that non-published coupons are excluded, but it says nothing about authentication requirements, pagination defaults, ordering, return shape, or whether unpublished coupons can be retrieved at all.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler; scope is stated immediately. Its brevity is efficient, though it borders on under-specification rather than genuine conciseness.

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?

The tool has four parameters, a required site id, and no output schema or annotations, yet the description never mentions the required site, pagination behavior, or what is returned. For a list tool with no annotation coverage, this leaves 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 coverage is 100%, so all four parameters (site, page, per_page, search) are fully documented in the schema itself. The description adds no meaning beyond the schema, 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?

A specific verb and resource ('List ... coupons') with the additional qualifier 'published' that narrows scope. It clearly identifies the operation, though it does not distinguish itself from sibling list tools such as woo_list_products or woo_list_orders beyond the resource name.

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?

No when-to-use guidance, no prerequisites (e.g. that a site id is required, see list_sites), and no exclusions or alternatives mentioned. The agent must infer usage entirely from the tool name and schema.

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

Deploy Server

Other Tools