Skip to main content
Glama
pepabo

Color Me Shop

Official

createCoupon

Destructive

Create a new discount coupon for your online store. Specify coupon code, type (fixed amount, percentage, or free shipping), and validity dates. Optionally set minimum purchase, product group restrictions, and usage limits.

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 indicate destructiveHint=true and readOnlyHint=false, which aligns with the description stating '作成する' (create). The description adds useful behavioral detail: required fields, unit specifics for discount_amount, and that delivery_charge does not need discount_amount. No contradiction with annotations.

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?

Description is front-loaded with purpose and then details. It is concise for the amount of information conveyed (required fields, unit notes, optional fields, sibling references). No redundant content, though could be slightly more structured.

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?

Tool creates a coupon and returns an object with id. No output schema, but description mentions return value. It covers required fields, unit behavior, and optional fields. For a creation tool, this is sufficiently complete, though more details on return structure would improve it.

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?

Schema description coverage is 0% for top-level parameter, but the tool description compensates well by explaining coupon_type enum values, discount_amount unit dependency, and optional fields like minimum_amount, group_limit_type, etc. This adds significant meaning beyond the schema.

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?

Description clearly states '新規ショップクーポンを作成し、id を含むクーポンオブジェクトを返します' (creates new shop coupon and returns coupon object with id). It distinguishes from sibling tools like updateCoupon, deleteCoupon, getCoupons by explicitly mentioning them.

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

Usage Guidelines4/5

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

Description provides clear context for when to use (creating a new coupon) and mentions alternatives for other operations ('変更はupdateCoupon、削除はdeleteCoupon、参照はgetCoupons / getCoupon'). It does not explicitly state when not to use, but the positive guidance is strong.

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