Skip to main content
Glama

delete_product_variation

Permanently delete a specific variation from a product. Remove discontinued or incorrect variations, instantly updating your storefront.

Instructions

[WRITE] 刪除商品變體。

【用途】 從商品中永久刪除指定的規格變體。適用於停售特定規格或清理錯誤變體。

【呼叫的 Shopline API】

  • DELETE /v1/products/{product_id}/variations/{variation_id}

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

【副作用】

  • 永久刪除變體,不可復原

  • 若該變體為商品唯一變體,刪除後商品可能無法購買

  • 刪除後前台立即移除該規格選項

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYes商品內部 ID
variation_idYes變體內部 ID
Behavior5/5

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

With no annotations, the description fully discloses permanent deletion, irreversibility, impact on product if sole variation, immediate frontend removal, API endpoint, and return structure. This exceeds typical transparency for a delete tool.

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). It is concise with no unnecessary words, achieving a high signal-to-noise ratio.

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?

For a simple delete tool with two parameters and no output schema, the description covers all necessary aspects: purpose, usage, side effects, API details, and return structure. Nothing essential is missing.

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?

The input schema already describes both parameters (product_id, variation_id) with 'internal ID' descriptions. The description adds no additional semantic meaning beyond what the schema provides, 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 'delete product variation' and explains it permanently removes a specific variation from a product. It distinguishes itself from sibling tools like create_product_variation and update_product_variation.

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 context on when to use (discontinuing specs, cleaning errors) and includes important side effects like irreversibility and product unpurchasability if sole variation. However, it does not explicitly compare to alternatives like updating variation to disabled.

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