Skip to main content
Glama

Delete Coupon Code

delete_coupon_code
Destructive

Delete one coupon code from the provided event.

Input Schema

NameRequiredDescriptionDefault
event_idYesEvent UUID returned by search_events.
coupon_code_idYes

Output Schema

NameRequiredDescriptionDefault
idYes
deletedYes
messageYes

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 destructiveHint=true and idempotentHint=false. The description adds almost nothing beyond that—it does not say whether deletion is permanent, how it affects existing orders using the code, or what permissions are required. The only added nuance is that it deletes exactly one code from a given event.

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?

The description is a single, front-loaded sentence with no wasted words. It is appropriately concise, though it borders on being too terse for a destructive operation.

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

Completeness3/5

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

The output schema handles return values and annotations cover the safety profile, so the description needn't explain those. However, for a destructive delete tool it leaves coupon_code_id undocumented and provides no usage guidance, which are clear gaps.

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 coverage is 50%: event_id is documented as an Event UUID from search_events, but coupon_code_id has no description in the schema or the tool description. The description adds no meaning about either parameter and does not compensate for the undocumented field.

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 states a specific verb (delete), resource (coupon code), and scope (one, from the provided event). It is clearly distinguishable from create_coupon_code and update_coupon_code by the verb, though it does not explicitly name those alternatives.

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 update_coupon_code or when deletion is appropriate. No prerequisites or conditions are mentioned beyond what the schema implies.

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