Skip to main content
Glama

PayPing: create coupon

payping_create_coupon
Destructive

Create an active PayPing discount coupon and return its code. Confirm with the user first because it writes real account data.

Instructions

Create an active discount coupon and return its code. Creates real data: confirm with the user first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes'percent' off, or a fixed Toman amount off.
nameYes
amountYesPercent (1-100) or Toman, per `kind`.
max_usesNo
expires_onNoLast valid day (YYYY-MM-DD).
coupon_codeNoCode buyers type; omit to generate.
product_codesNoLimit to these products; omit for all.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description still adds value by spelling out that this creates real data, requires user confirmation, and returns a generated code -- context not present in the annotations.

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 sentences, zero filler, and the action plus its caution are front-loaded. Nothing repeats structure already encoded elsewhere.

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?

An output schema exists, so the return value need not be re-explained, and the description still highlights the returned code. The remaining gap is behavioral detail (e.g. whether the coupon is immediately live or how it interacts with product_codes), minor given the annotation coverage.

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 71%, and the schema already explains kind, amount, expires_on, coupon_code and product_codes. The description contributes nothing about any of the seven parameters, so the baseline 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 an active discount coupon") plus a notable side effect (returns its `code`), which is far more than a tautology. It is distinguishable from the get/list coupon siblings, though it never names them.

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?

Provides one real usage instruction -- confirm with the user first -- which is the right kind of guidance for a mutation. But it offers no when-not conditions, no prerequisites (e.g. do the referenced products need to exist?), and no routing to alternatives.

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