Skip to main content
Glama

delete_product_images

Delete specified images from a product's gallery. Permanently removes outdated or incorrectly uploaded images.

Instructions

[WRITE] 刪除商品圖片。

【用途】 從商品相簿中刪除指定圖片。適用於移除過時圖片或錯誤上傳的圖片。

【呼叫的 Shopline API】

  • DELETE /v1/products/{product_id}/images

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

【副作用】

  • 永久刪除指定圖片,不可復原

  • 若被刪除的圖片為商品主圖,商品主圖將自動替換為相簿中下一張圖片

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYes商品內部 ID
image_idsYes要刪除的圖片 ID 列表
Behavior4/5

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

With no annotations provided, the description discloses critical behavioral traits: permanent deletion (不可復原) and automatic main image replacement. Missing details on authorization or rate limits, but overall good transparency.

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 sections (WRITE, purpose, API, return, side effects) and is concise without unnecessary words. Slightly verbose with whitespace, but effective.

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 the tool's simplicity (no output schema, two parameters), the description covers purpose, usage, API, return structure, and side effects. Contextually sufficient for agent invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and descriptions for product_id and image_ids are already in the schema. The description adds minimal extra meaning beyond the schema, so baseline 3 is appropriate.

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 this tool deletes product images with the verb 'delete' and resource 'product images'. It also distinguishes from sibling tools like add_product_images and other update/delete operations.

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 context for when to use (removing outdated or incorrectly uploaded images) but does not explicitly state when not to use or mention alternatives like add_product_images.

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