Skip to main content
Glama

Create a store coupon

create_coupon
Idempotent

Store administration: works on the business's own link-in-bio store in Ignix, which the user manages as its owner. Nothing is bought or sold in this chat; the store's customers buy on the store page, paid to the business's own Stripe account. Create a discount code for the store: either a percentage (percentOff) or a fixed amount (amountOff plus currency). Optional usage limit, expiry date and products it is limited to. It is also created in the business's Stripe when Stripe is connected. Buyers type the code at checkout.

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": {
      "code": "<code>"
    },
    "name": "create_coupon"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes3-30 characters: letters, digits, "-" or "_". Stored in capitals.
maxUsesNoTotal uses allowed. Omit for unlimited.
currencyNoISO code of amountOff (e.g. "eur"). Required with amountOff.
productsNoProduct ids, slugs or titles it applies to. Omit for every product.
amountOffNoFixed discount in the currency, e.g. "5" or "4.99". Use this OR percentOff.
expiresOnNoLast valid day, YYYY-MM-DD (ends at the end of that day, UTC).
percentOffNo1-100. Use this OR amountOff.
workspaceIdNoDefaults to the workspace this connection is scoped to.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=true, so safety and repeatability are covered. The description adds genuinely non-obvious behavior: the coupon is mirrored into the business's own Stripe account when Stripe is connected, and the code is stored in capitals. It does not discuss failure modes such as duplicate-code rejection, which keeps it short of a 5.

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 ordering is sensible: scope of operation, then the core creation action and its variants, then optional constraints, then side effects. The preamble about nothing being bought or sold in the chat is slightly verbose but earns its place by preventing a common misread of the tool.

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 9-parameter mutation with no output schema, the description covers the object being created, its constraints, and the Stripe propagation side effect. The main remaining gap is the return value and duplicate-code behavior, which is acceptable but not fully covered given the tool's complexity.

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 description coverage is 100%, so the baseline is 3 and the schema already documents every parameter including the idempotencyKey retry protocol. The description's contribution is restating the percentOff/amountOff exclusivity and currency pairing, which duplicates what the schema properties say rather than adding new meaning.

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 and resource, 'Create a discount code for the store', and immediately narrows the shape of the object with 'either a percentage (percentOff) or a fixed amount (amountOff plus currency)'. It never names the sibling that handles the adjacent action (set_coupon_active), so differentiation rests on the verb alone rather than explicit contrast.

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?

It supplies useful framing about where this operates ('the business's own link-in-bio store in Ignix', 'nothing is bought or sold in this chat') and who consumes the result ('buyers type the code at checkout'), which implies when to reach for it. However, it gives no explicit when-to-use versus when-not, and no pointer to set_coupon_active for later activation, so usage selection is left to inference.

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