Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

update_product

Update existing product fields such as name, description, category, or status. Only the provided fields are changed, leaving other product details intact, with changes taking effect immediately.

Instructions

[WRITE] 更新商品基本資料。

【用途】 修改現有商品的名稱、描述、分類、狀態等欄位。僅傳入要修改的欄位, 未傳入的欄位不會被覆蓋。

【呼叫的 Shopline API】

  • PUT /v1/products/{product_id}

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

【副作用】

  • 商品資料變更立即生效,前台同步更新

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYes商品內部 ID
product_dataYes要更新的商品欄位(僅需傳入要修改的欄位)
Behavior4/5

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

With no annotations, the description carries the burden. It discloses the write nature, immediate front-end effect, irreversibility, and the partial-update behavior. It could add error conditions or permission requirements, but covers key side effects well beyond the schema.

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 (purpose, API, return, side effects), front-loaded with [WRITE] and purpose. It is concise for the information it conveys, with no redundant sentences.

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 mutation tool with no output schema, it covers purpose, endpoint, return structure, side effects, and partial update behavior. Missing details like error handling or authorization are minor given the tool's complexity and the richness of the provided information.

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%, so baseline is 3. The description adds value by giving concrete examples of updatable fields (name, description, category, status) and explaining the partial-update semantics, which is not fully captured by the schema's generic product_data description.

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 updates existing product basic information, listing specific fields (name, description, category, status). The [WRITE] marker and API endpoint reinforce the action. It distinguishes itself from sibling tools like update_product_quantity and update_product_price by focusing on '基本資料' rather than specific attributes.

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?

It provides clear context for when to use—when modifying existing product fields—and describes partial-update behavior ('only pass fields to modify, unspecified fields are not overwritten'). It does not explicitly name alternatives or exclusions, but the field focus and sibling context make appropriate usage clear.

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