Skip to main content
Glama
pepabo

Color Me Shop

Official

updateCustomerMembership

DestructiveIdempotent

Update a customer's membership rank by providing the customer ID and new membership rank ID. Requires the Membership Rank app installed in your Color Me Shop store.

Instructions

指定した会員顧客の所属する会員ランクを更新します。customer_id で対象会員、membership.membership_id で新しいランクの ID を指定してください。本機能は「カラーミーショップ アプリストア」で提供されている「会員ランク」アプリを利用しているショップでのみリクエスト可能で、未導入ショップではエラーになります。会員ランクの紐付きを解除してランクなしに戻す場合は deleteCustomerGroupMembership、顧客情報本体の取得は getCustomer、顧客情報の更新は updateCustomers を使用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customer_idYes更新対象の顧客ID
membershipYes会員ランク情報
Behavior4/5

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

Annotations already indicate mutability (readOnlyHint=false) and potential destructiveness (destructiveHint=true). The description adds the app requirement as a critical behavioral constraint. It does not contradict annotations; idempotentHint is consistent with setting a rank. Minor omission: no mention of whether the operation appends or replaces, but the schema implies replacement.

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 four sentences, front-loaded with the core action, then parameters, then usage guidelines. No unnecessary words or repetition. It is concise yet 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?

The tool has moderate complexity with nested parameters and a mutation operation. No output schema is provided, but the description covers when to use, prerequisites, and alternatives. Given the richness of annotations and schema, the description is complete enough for an agent to invoke correctly.

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 coverage is 100% with descriptions. The description reinforces these by stating 'customer_id で対象会員、membership.membership_id で新しいランクの ID を指定してください' (specify customer_id and membership_id). It adds value by explaining the role of parameters in the context of updating a membership rank.

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 states 'Updates the membership rank of a specified member customer' (明確に目的を記載). It also distinguishes from sibling tools by naming alternatives: deleteCustomerGroupMembership for removal, getCustomer for retrieval, updateCustomers for general update. This makes the tool's purpose and differentiation clear.

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 states when to use this tool (to set a new membership rank) and when to use alternatives (deleteCustomerGroupMembership to remove rank). It also notes the prerequisite that the '会員ランク' app must be installed; otherwise an error occurs. This provides comprehensive usage guidance.

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