Skip to main content
Glama
Cupom Center MCP
by experiens

Redeem multiple coupons

redeem_multiple_coupons
DestructiveIdempotent

Redeem 2–10 previously quoted coupons together, preserving the quote’s code order and selection strategy. Confirm all applicable uses and budgets atomically, or none if any coupon fails.

Instructions

Atomically confirm 2–10 coupons previously calculated together. Preserve code order and selection strategy from the quote. Either all applicable uses/budgets confirm or none do.

Input Schema

NameRequiredDescriptionDefault
cart_idNo
contextYes
paymentNo
order_idNo
quote_idNo
selectionYes
coupon_codesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds genuinely new behavioral facts: atomic all-or-nothing semantics ("Either all applicable uses/budgets confirm or none do") and the requirement to preserve code order and selection strategy from the quote. It stops short of saying what exactly is consumed or what a partial failure looks like in the response.

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?

Three short sentences, front-loaded with the atomic guarantee and constrained immediately by cardinality and ordering rules. Nothing is repeated from the title and no sentence is filler.

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?

For a 7-parameter, deeply nested mutation with no output schema, the description covers the most important invariant (atomicity) and the ordering constraint but omits the quote/cart/payment relationship and failure reporting. An agent knows what the call guarantees but not fully what it requires in order to build a valid payload.

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 0% at the top level, so the description must carry the burden; it partially does by constraining coupon_codes to 2–10 and explaining that selection/strategy must mirror the quote. The remaining five parameters (cart_id, order_id, quote_id, payment, context) get no mention at all, so an agent still cannot tell how quote_id relates to this call or why payment is sometimes supplied.

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?

"Atomically confirm 2–10 coupons previously calculated together" gives a specific verb (confirm/redeem), resource (multiple coupons) and cardinality scope, which cleanly separates it from redeem_single_coupon. It never names the sibling or the quoting tool it depends on, so the differentiation is inferential rather than explicit.

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

Usage Guidelines3/5

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

"Previously calculated together" implies it must follow a multi-coupon quote and that the inputs come from that quote, which is useful sequencing context. It does not state explicit preconditions (e.g. a valid quote_id / non-expired quote), nor when to prefer redeem_single_coupon or reverse_operation instead.

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