Skip to main content
Glama

Payhip: Create coupon

payhip_create_coupon

Payhip: Coupon code for the whole order, one product or one collection. A percentage applies to the original price and a fixed amount is deducted from it. Payhip has no per-buyer limit, so use a product-specific code or single-use codes for that. The coupon works at checkout right away. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoCode buyers type at checkout. Omit to let Payhip generate one.
notesNoPrivate note. Buyers never see it.
amountYesPercent off or amount off.
applies_toYestotal_order, product or collection.
expires_onNoExpires at 00:00 UTC on this date.
product_idNoRequired when applies_to is product.
usage_limitNoTotal uses across all buyers, not per buyer.
collection_idNoRequired when applies_to is collection.
discount_typeYespercentage or fixed.

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?

Beyond the annotations, it discloses that the coupon is live at checkout immediately, that confirmation applies by default with an opt-out, and that the call reaches other people so user confirmation is needed. The auth requirement (Cotlet API key with app access) is also stated. The confirmation wording is slightly muddled but adds real behavioral context.

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?

It front-loads the coupon scope, which is good, but the remaining content is a run-on covering discount math, per-buyer guidance, confirmation policy, and auth. The two adjacent confirmation sentences overlap and read as slightly contradictory, hurting structure.

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 creation tool with no output schema, the description covers scope, discount behavior, side effects, confirmation, and auth needs. It lacks any mention of the resulting coupon code/response, but that gap is minor given the tool's low output 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 schema already documents all nine parameters, establishing a baseline of 3. The description adds discount semantics (percentage applies to original price, fixed is deducted) and the per-buyer-limit behavior, which is modest extra value over the enum descriptions.

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 makes clear this is about a Payhip coupon code scoped to a whole order, single product, or collection, and names the discount mechanics. The creating action is implied by the name/title rather than stated as a verb in the text, and no sibling (e.g., payhip_list_coupons) is named for contrast, so it stops short of 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?

It gives a genuine usage hint – Payhip has no per-buyer limit, so a product-specific or single-use code is the workaround – which steers behavior. However it never states when to reach for this tool versus list_coupons or update, so routing guidance is only partial.

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