Skip to main content
Glama

delete_category

Permanently remove a product category from your Shopline store. Use to clean up disabled or incorrectly created categories, with automatic unlink of associated products.

Instructions

[WRITE] 刪除商品分類。

【用途】 從 Shopline 商店中永久刪除指定分類。適合清除已停用或錯誤建立的分類。

【呼叫的 Shopline API】

  • DELETE /v1/categories/{category_id}

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

【副作用】

  • 永久刪除分類記錄,不可復原

  • 原本屬於此分類的商品將解除分類關聯,商品本身不會被刪除

  • 若有子分類,子分類的父分類關聯可能一併受影響(視 Shopline 實作而定)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
category_idYes分類 ID
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: permanent deletion, irreversibility, product disassociation without deletion, and potential subcategory association impact. It also describes the return structure, making the tool's behavior transparent.

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 for purpose, API, return, and side effects. It is concise but includes some redundant details like the exact API endpoint. Still, it front-loads the key information effectively.

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 simple delete tool, the description covers purpose, usage, side effects, and return structure comprehensively. It omits error cases or permission requirements but is otherwise complete given the tool's simplicity and lack of output schema.

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% with a single parameter described. The description adds no further meaning beyond the schema's 'category ID' context. Baseline 3 is appropriate as the schema already carries the burden.

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 deletes a product category permanently. It specifies the resource (category) and action (delete), and distinguishes from siblings like update_category and create_category by focusing on removal. The [WRITE] prefix and side effects reinforce the destructive nature.

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 states it is suitable for removing disabled or incorrectly created categories, providing clear context. However, it does not explicitly mention when not to use it or compare with alternatives like update_category for deactivation. The side effects help guide appropriate usage.

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