Skip to main content
Glama

updateCoupon

Destructive

Rename a coupon or change the items it is limited to. Nothing else about a coupon can change: to change its discount, create a new coupon. Pass coupon.title to rename it, or an empty title to remove its name. Pass coupon.limitedItems.values as the complete list of items, since it replaces the current one; only a coupon created with limitedItems enabled accepts it. Returns the updated coupon. Get couponId from getCoupons. Get limitedItems ids from the same location: getResources for bookings, getEvents for eventTickets, getProducts for shopProducts, getPackages for packages, and getPlans for subscriptionItems. An id the location does not have is dropped, so check limitedItems in the result. Never invent UUIDs; only use values from prior tool responses.

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": {
      "couponId": "<couponId>",
      "coupon": "<coupon>"
    },
    "name": "updateCoupon"
  }
}

Input Schema

NameRequiredDescriptionDefault
couponYesCoupon fields to update. Fields left out keep their current value.
couponIdYesThe id of the coupon.

Output Schema

NameRequiredDescriptionDefault
couponYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes further by explaining exactly what is destroyed: limitedItems.values 'replaces the current one' rather than merging. It also discloses a non-obvious silent-failure mode ('An id the location does not have is dropped, so check limitedItems in the result') and warns against fabricating UUIDs, which no annotation conveys.

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?

Purpose and the hard exclusion are front-loaded in the first two sentences, then details follow in descending order of importance. It is dense and the id-source enumeration is long, but every clause carries actionable information with no filler.

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

Completeness5/5

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

For a two-parameter mutation with a nested object and an output schema, the definition covers the destructive replacement semantics, the eligibility precondition, id provenance, and the silent-drop pitfall. Return values need no explanation because an output schema exists.

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?

Schema coverage is 100% and the nested schema already documents title, limitedItems, and the id/type pair, so the baseline is 3. The description still adds real meaning beyond it: empty-title behavior, the replacement-not-append contract, and the requirement that the coupon was created with limitedItems enabled.

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

Purpose5/5

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

Opens with a specific verb-plus-resource statement ('Rename a coupon or change the items it is limited to') and immediately bounds the scope by excluding everything else ('Nothing else about a coupon can change'). An agent can distinguish this from updateProduct/updatePlan-style siblings and from createCoupon without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing plus a named alternative for the excluded case ('to change its discount, create a new coupon'). It also specifies prerequisites ('only a coupon created with limitedItems enabled accepts it') and names the exact lookup siblings for each id source (getCoupons, getResources, getEvents, getProducts, getPackages, getPlans).

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