Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

update_customer

Update customer basic information such as name, email, phone, gender, or birthday. Pass only the fields to change; unspecified fields remain unchanged.

Instructions

[WRITE] 更新客戶基本資料。

【用途】 修改客戶姓名、聯絡方式、生日等基本資料。僅傳入要修改的欄位,未傳入的欄位不會被覆蓋。

【呼叫的 Shopline API】

  • PUT /v1/customers/{customer_id}

【回傳結構】 dict 含 success: bool, resource_id: str, message: str。

【副作用】

  • 修改客戶資料,變更立即生效

  • 不可復原(無版本歷史),但可再次呼叫此工具覆蓋

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo新姓名
emailNo新 Email
phoneNo新電話
genderNo性別 (male/female/other)
birthdayNo生日 YYYY-MM-DD
customer_idYes客戶內部 ID
Behavior5/5

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

With no annotations provided, the description carries full responsibility for disclosing behavioral traits. It explicitly lists side effects: '修改客戶資料,變更立即生效' (changes take effect immediately) and '不可復原(無版本歷史),但可再次呼叫此工具覆蓋' (not reversible, no version history, but can be overwritten). It also states the return structure, making it highly transparent.

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?

The description is well-structured with clear sections: [WRITE], purpose, API, return structure, and side effects. Each section is concise and necessary, providing essential information without redundancy. It is front-loaded with purpose and immediately tells the agent what the tool does.

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?

For a 6-parameter update tool with no annotations and no output schema, the description covers the key aspects: purpose, partial-update usage, API endpoint, return structure, and side effects. It lacks details on authentication requirements or error conditions, but these are not critical for the basic update operation. Overall, it is sufficiently complete 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% (all 6 parameters described in the schema). The description adds valuable beyond-schema semantics: '僅傳入要修改的欄位,未傳入的欄位不會被覆蓋' (only pass fields to modify; omitted fields are not overwritten). This clarifies the partial-update behavior for all optional fields, which is not evident from the schema alone.

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 '更新客戶基本資料' (update customer basic info) and elaborates with '修改客戶姓名、聯絡方式、生日等基本資料' (modify name, contact, birthday, etc.). This distinguishes it from sibling tools like update_customer_tags and update_customer_store_credits, which target different aspects of a customer.

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?

The description provides clear context on how to use the tool: '僅傳入要修改的欄位,未傳入的欄位不會被覆蓋' (only pass fields to modify; omitted fields are not overwritten). This explains partial-update usage. However, it does not explicitly mention alternatives or when not to use this tool, so it stops short of fully contrasting with sibling update tools.

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/tzangms/shoplinemcp'

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