Skip to main content
Glama

Select a vendor coupon

zoodex_select_coupon

Apply a vendor coupon to the cart and get the recalculated total, or pass -1 to remove it. Use it to adjust cart pricing before checkout.

Instructions

Apply a vendor coupon (from zoodex_vendor_coupons) to the cart and return the recalculated cart. Use coupon_id=-1 to remove the coupon.

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": {
      "vendor_slug": "<vendor_slug>",
      "coupon_id": "<coupon_id>"
    },
    "name": "zoodex_select_coupon"
  }
}

Input Schema

NameRequiredDescriptionDefault
coupon_idYes
vendor_slugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation profile is known; the description adds that the call returns the recalculated cart and that -1 removes the coupon, both non-obvious behaviors. It omits whether applying a new coupon replaces an existing one and what errors occur for an invalid coupon_id.

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?

Two short sentences, front-loaded with the action and its result, with the removal convention immediately after. No redundant or filler wording.

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

Completeness4/5

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

For a two-parameter mutation tool with annotations and no output schema, the description covers the source of IDs, the return value, and the removal case. The remaining gap is the undocumented vendor_slug parameter and the replace-vs-add behavior when a coupon is already applied.

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%, so the description carries the full burden. It explains coupon_id meaningfully by defining the -1 sentinel, which the schema cannot express, but vendor_slug is never described at all, leaving half the required parameters undocumented.

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 description names a specific verb and resource (apply a vendor coupon to the cart) and names the sibling tool that supplies coupon IDs, which implicitly separates it from the listing tool zoodex_vendor_coupons. An agent can tell what this does without opening the 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 establishes the clear precondition that the coupon comes from zoodex_vendor_coupons and documents the removal path via coupon_id=-1, which is genuine when-to-use guidance. It stops short of stating exclusions, such as how this differs from zoodex_check_offer_code or what happens if a coupon is already applied.

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