Skip to main content
Glama
pepabo

Color Me Shop

Official

cancelSale

DestructiveIdempotent

Cancel an existing order by ID, automatically handle returns and refunds. Optionally restock inventory. Irreversible operation zeros item counts and total, sets canceled flag, cancels payments and points.

Instructions

既存受注をキャンセルし、返品・返金処理を連鎖させます。sale_id で対象を特定、restock(boolean)で在庫の自動戻し入れの要否を指定。キャンセルにより商品購入数・合計金額が 0 になり canceled フラグが true に変わります。使用ポイント(ショップポイント・GMO ポイント)および対応決済(Amazon Pay / LINE Pay / 楽天ペイ / PayPay)の決済金額は自動的にキャンセル・返金されます。販売手数料確定前の受注では販売手数料も 0 になります。分割された受注のキャンセルおよび、クレジット(イプシロン)決済でキャンセル連動設定を利用したキャンセルはサポート対象外です。この操作は不可逆で、元の受注状態に戻す API はありません。受注の更新は updateSale、詳細は getSale。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sale_idYes
restockNo`true`の場合、在庫管理している商品について、購入された分の在庫数を充当する
Behavior5/5

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

Annotations already indicate destructiveHint and idempotentHint, but the description adds crucial context: the operation is irreversible, sets canceled flag to true, zeroes quantities and total, automatically refunds points and select payments, and sets commission to 0 if not yet fixed. It also lists unsupported scenarios beyond 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?

The description is comprehensive but slightly lengthy; however, it is front-loaded with the main action and covers all necessary details without redundancy. It could be more succinct but remains clear.

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 lack of output schema, the description adequately explains the effects (flags, totals, refunds) and provides sufficient context for a destructive operation. It could mention the return value or error conditions, but the existing detail is strong.

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

Parameters5/5

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

The description fully explains both parameters: sale_id identifies the target order, restock controls automatic restocking. Despite only 50% schema description coverage, the description compensates completely by adding meaning to both parameters 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?

The description clearly states the tool cancels an existing order and triggers returns/refunds. It specifies the verb 'cancel' and resource 'sale', and distinguishes from siblings like updateSale (for updates) and getSale (for details).

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 explicitly says when to use (to cancel an order) and when not (split orders and credit card with Epsilon are not supported). It also mentions alternatives: updateSale for updates and getSale for details.

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