Skip to main content
Glama
pepabo

Color Me Shop

Official

createCoupon

Destructive

Create a new coupon for your online store. Define coupon code, discount type (fixed amount, percentage, or free shipping), start and end dates, and optional usage limits or product restrictions.

Instructions

新規ショップクーポン(チェックアウト時に顧客がコード入力する値引き)を作成し、id を含むクーポンオブジェクトを返します。shop_coupon 必須項目: code・coupon_type(amount=定額円引き / rate=定率% / delivery_charge=送料無料)・starts_at・ends_at。discount_amount の単位は coupon_type が amount なら円、rate なら %(1〜100 の範囲)。delivery_charge の場合は discount_amount を指定する必要はありません。任意項目: minimum_amount(最低購入金額)、対象商品の絞り込み(group_limit_type / group_ids)、利用回数制限(total_usage_limit 等)。変更は updateCoupon、削除は deleteCoupon、参照は getCoupons / getCoupon。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shop_couponNo
Behavior4/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false, so the description's claim of creating a coupon aligns. It adds value by explaining the return includes id, but does not cover authentication or rate limits. Still effective.

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 description is well-structured, starting with purpose, then required fields, unit details, optional fields, and references to related tools. It is slightly verbose but informative.

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?

Given the CRUD context and annotations, the description covers creation logic, required/optional fields, unit semantics, and links to other tools. It does not mention error handling or output format beyond ID, but is sufficiently complete.

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

Parameters4/5

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

The description explains the unit of discount_amount based on coupon_type and that delivery_charge does not require discount_amount, adding meaning beyond the schema's descriptions. However, the schema already has detailed descriptions, so the added value is moderate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it creates a new shop coupon and returns the coupon object with id. It distinguishes from sibling tools by explicitly mentioning updateCoupon, deleteCoupon, getCoupons, and getCoupon for other operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description specifies required fields (code, coupon_type, starts_at, ends_at) and optional fields, and explicitly tells when to use alternative tools: '変更は updateCoupon、削除は deleteCoupon、参照は getCoupons / getCoupon'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pepabo/colormeshop-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server