Skip to main content
Glama

Create a store coupon

create_coupon

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.

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.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context beyond that: the coupon is replicated into the business's connected Stripe account (an external side effect), and 'Buyers type the code at checkout' explains the downstream behavior. It does not address error/duplicate-code handling, keeping it short of 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action ('Create a discount code') does not appear until the third sentence; the two preceding sentences are domain preamble about the chat not selling anything. The content is not bloated overall, but it is not front-loaded and the opening framing is somewhat expendable.

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 create tool with full schema coverage and no output schema, the description supplies the domain, the two discount modes, and the Stripe replication side effect. It omits return-value behavior and what happens on a duplicate code, but the structured schema plus annotations carry the rest, leaving it nearly complete.

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 every parameter is already documented in the schema, including the percentOff/amountOff exclusivity and the idempotencyKey semantics. The description restates the percentage-vs-fixed-amount choice but adds no format or constraint detail beyond what the schema carries, so the baseline of 3 applies.

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 discount code for the store') and enumerates the two modalities (percentOff vs amountOff plus currency). An agent can tell it apart from list_coupons and set_coupon_active by inference, but the description never names those siblings explicitly, so it stops short of full differentiation.

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?

The 'Store administration' framing and the note that buyers use the code at checkout give implied context for when this applies, and the scope is clarified as the business's own store rather than a marketplace. However, there is no explicit when-to-use/when-not guidance or routing against siblings like set_coupon_active or update-style alternatives.

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