Skip to main content
Glama

update_addon_product

Update add-on product details such as name, price, and images. Changes take effect immediately and cannot be undone.

Instructions

[WRITE] 更新加購商品資料。

【用途】 修改指定加購商品的名稱、價格、圖片等欄位。僅傳入要修改的欄位。

【呼叫的 Shopline API】

  • PUT /v1/addon_products/{addon_product_id}

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

【副作用】

  • 修改指定加購商品的資料,變更立即生效

  • 不可復原,但可再次呼叫此工具覆蓋

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addon_product_idYes加購商品 ID
addon_dataYes要更新的加購商品欄位,例如 {name, price, ...}
Behavior4/5

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

With no annotations, the description carries full burden. It labels the tool as WRITE, states changes take effect immediately, irreversibility but ability to overwrite, and provides return structure. This adequately discloses behavioral traits beyond simple read/write.

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 well-structured with clear sections (WRITE, 用途, API, return, side effects) and is front-loaded with the main action. Each sentence serves a purpose with no redundancy, though it could be slightly more concise.

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 two parameters with full schema coverage, a return structure specification, and side effect disclosure, the description is complete for an update tool. It lacks mention of authorization or permissible field constraints, but these are minor gaps in this context.

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?

The schema has 100% coverage for both parameters. The description adds value by explaining it is a partial update (only pass fields to change) and listing example fields (name, price, image). This provides meaningful context beyond the schema definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'update addon product data' and lists specific fields like name, price, and image. It distinguishes from sibling tools like create_addon_product and update_addon_product_quantity, but could more explicitly differentiate when to use each.

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

Usage Guidelines3/5

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

The description includes a '用途' section advising to only pass fields to modify, providing basic usage guidance. However, it does not clarify when to use this tool versus alternatives such as update_addon_product_quantity or create_addon_product, missing explicit when-not or alternative recommendations.

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/asgard-ai-platform/mcp-shopline'

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