Skip to main content
Glama

delete_promotion

Permanently delete a specified promotion to remove expired, test, or error-created promotions. Irreversible action prevents discount code use but does not affect historical orders.

Instructions

[WRITE] 刪除促銷活動。

【用途】 永久刪除指定的促銷活動。通常用於清除過期、測試或錯誤建立的活動。

【呼叫的 Shopline API】

  • DELETE /v1/promotions/{promotion_id}

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

【副作用】

  • 永久刪除該促銷活動,不可復原

  • 刪除後消費者無法再使用與該活動相關的折扣碼或優惠

  • 已套用該促銷的歷史訂單不受影響

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promotion_idYes促銷活動 ID
Behavior5/5

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

Despite no annotations, the description is highly transparent: discloses permanent deletion, irreversibility, impact on discount codes, and that historical orders are unaffected. Also provides API endpoint and return structure.

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 (purpose, API, return, side effects) and is concise. Minor fluff like the exact API endpoint could be omitted, but overall efficient.

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 the tool's simplicity (one param, no output schema), the description is complete: explains when to use, side effects, and return structure. No gaps for an AI agent to understand 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?

Only one parameter 'promotion_id' with schema description 'promotion ID'. Schema coverage is 100%, so baseline is 3. Description does not add additional semantic detail beyond what the schema provides.

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 the tool permanently deletes a promotion, specifying the purpose (clear expired/test/incorrect activities). It distinguishes from sibling tools like create/update/list by focusing on deletion.

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 'usually used to clear expired, test, or incorrectly created activities' provides clear context for when to use. No explicit alternatives are mentioned, but the purpose is well-defined.

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