Skip to main content
Glama

deleteCoupon

Destructive

Delete a coupon so it can no longer be redeemed. Deleting is permanent and cannot be undone. It also archives every promocode of the coupon and removes the coupon from the plans, resource pricing tiers, and subscriptions it is granted on, so those subscriptions' future invoices are no longer discounted. Purchases already discounted keep their discount, and the coupon's redemptions stay. Returns the coupon as it was before the delete. Get couponId from getCoupons. 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>"
    },
    "name": "deleteCoupon"
  }
}

Input Schema

NameRequiredDescriptionDefault
couponIdYesThe id of the coupon.

Output Schema

NameRequiredDescriptionDefault
couponYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses the exact blast radius: promocodes archived, removal from plans, resource pricing tiers and subscriptions, and loss of future discounts. It also states what is preserved (past purchases' discounts and existing redemptions) and that the pre-delete coupon is returned.

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

Conciseness5/5

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

Four sentences, each doing distinct work: purpose, permanence warning, cascade and preservation semantics, then parameter provenance. Nothing is repeated from the schema or annotations.

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 single-parameter destructive tool it covers irreversibility, side effects on related entities, what survives, and where to source the id. The return-value clause is mildly redundant given the output schema but not harmful.

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 already 100%, so the baseline is 3; the description adds provenance meaning by naming getCoupons as the source of couponId and warning against fabricated UUIDs.

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?

The first sentence states a specific verb and resource plus the effect ('Delete a coupon so it can no longer be redeemed'), which lets an agent distinguish it from updateCoupon or archivePromocode without opening a schema.

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

Usage Guidelines4/5

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

It explicitly directs the agent to obtain the id from getCoupons and forbids inventing UUIDs, which is clear procedural guidance. It stops short of naming exclusions such as when to archive or update instead of delete, leaving that inference to the agent.

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