Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

update_gift

Update a gift's name, quantity, or other fields using its gift ID and only the fields to change. Changes apply immediately.

Instructions

[WRITE] 更新贈品資料。

【用途】 修改指定贈品的名稱、數量、圖片等欄位。僅傳入要修改的欄位。

【呼叫的 Shopline API】

  • PATCH /v1/gifts/{gift_id}

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

【副作用】

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

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gift_idYes贈品 ID
gift_dataYes要更新的贈品欄位,例如 {name, quantity, ...}
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It discloses that modifications take effect immediately, are irreversible, but can be overwritten by calling again. It also specifies the return structure (success, resource_id, message). This goes beyond a basic functional statement and provides meaningful behavioral context.

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, Usage, API, Return, Side effects), starting with the core action. Every section provides necessary information without fluff, making it concise and easy to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description fully covers return values. It also addresses side effects and API details, which are essential for a write operation. The tool has only two parameters, and the description covers its purpose, usage, and behavior completely.

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, but the description adds value by clarifying the partial-update behavior ('僅傳入要修改的欄位') and listing example fields (name, quantity, image). This helps the agent understand that gift_data should be a partial object, not a full replacement.

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 opens with '更新贈品資料' and specifies '修改指定贈品的名稱、數量、圖片等欄位', clearly stating the tool updates gift data and which fields are involved. This provides a specific verb+resource+scope, distinguishing it from generic actions. Though a sibling tool update_gift_quantity_by_sku exists, the description's field list makes the general-purpose nature clear.

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 includes the explicit usage note '僅傳入要修改的欄位', telling the agent to pass only fields to be updated for a partial update. This is clear contextual guidance on how to use the tool, but it does not mention alternatives or explicitly when not to use it, so it misses the highest tier.

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