Skip to main content
Glama

Issue Kash promo code

coupon_issue
DestructiveIdempotent

Create a promo code linked to an existing catalog reduction. Requires explicit confirmation and an active shop administrator or manager. Reuse the same key and arguments for a retry.

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": {
      "confirm": "<confirm>",
      "idempotency_key": "<idempotency_key>",
      "code": "<code>",
      "name": "<name>",
      "reduction_id": "<reduction_id>"
    },
    "name": "coupon_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesNew sensitive promo code, 1–50 letters, digits, underscores or hyphens. Keep it out of messages and URLs.
nameYes
confirmYesSet to true when the user explicitly requests this issuance.
max_usesNo
valid_fromNoCalendar date in YYYY-MM-DD format.
valid_untilNo
reduction_idYesExisting Kash catalog reduction ID.
idempotency_keyYesUnique request key for this operation, such as a UUID. Reuse the same key and arguments when retrying.
minimum_item_countNo
minimum_order_amountNo
one_use_per_customerNo

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, destructive, idempotent mutation, and the description adds genuinely complementary context: user confirmation is mandatory, an admin/manager role is required, and retries must reuse the same key and arguments. What it does not explain is why the operation is flagged destructive (e.g., whether a code can be revoked or re-issued), which leaves the risk profile partly opaque.

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, each carrying a distinct obligation: what is created, who may authorize it, and how to retry. The resource is stated first and 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.

Completeness4/5

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

Output schema exists, so return values need no explanation, and the description covers the auth, confirmation and idempotency dimensions that matter for a destructive mutation. It stops short of saying what happens to the promo code after creation or how failures surface, a small gap for an 11-parameter write tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 45% across 11 parameters, so the description must compensate, and it does for the highest-stakes fields: it binds confirm to an explicit user request, names reduction_id's referent as an existing Kash catalog reduction, and instructs reusing the same idempotency key. The remaining optional fields (max_uses, validity dates, minimums, per-customer limit) are self-describing in the schema, so no meaning is lost.

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?

States a specific verb and resource ('Create a promo code') plus a key constraint ('linked to an existing catalog reduction'), so the agent knows exactly what is produced. It does not distinguish itself from siblings such as coupon_check or personal_voucher_issue, which is the only thing keeping it from a 5.

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?

Gives prerequisites in the form of 'Requires explicit confirmation and an active shop administrator or manager', which tells the agent under what authority it may act. However, it never says when to prefer this over coupon_check or personal_voucher_issue, leaving the alternative-selection decision implicit.

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