Skip to main content
Glama

create_flash_price_campaign

Create a limited-time price campaign to set special prices on products during specified hours, enabling flash sales for seasonal events or clearance.

Instructions

[WRITE] 建立快閃價格活動。

【用途】 建立限時特價活動(Flash Sale),在指定時段內將商品調整為特定價格。 適合節慶特賣、清倉、限時搶購等場景。

【呼叫的 Shopline API】

  • POST /v1/flash_price_campaigns

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

【副作用】

  • 活動建立後,依設定的開始時間自動啟用特價

  • 活動期間,符合條件的商品會顯示特價,影響商店前台的價格呈現

  • 若活動時段與其他促銷重疊,需確認優先規則

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_dataYes快閃價格活動資料(參考 Shopline flash_price_campaign 物件結構)
Behavior4/5

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

With no annotations, description fully discloses side effects (auto-activation, price display, overlap considerations) and API details, adding behavioral context beyond the schema.

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?

Well-structured with sections for purpose, use cases, API, return, side effects. Front-loaded and concise without redundancy.

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

Completeness3/5

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

Covers purpose, side effects, return structure, but fails to elaborate on campaign_data parameter structure, which is critical for correct invocation given no output schema and nested object.

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

Parameters2/5

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

Single parameter campaign_data lacks detailed semantic explanation; schema only defines it as an object with additionalProperties, and description only references external structure, leaving agent without guidance on required fields.

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?

Description clearly states tool creates a flash price campaign for limited-time sales, with use cases like holiday sales and clearance. Differentiates from siblings like create_promotion and update_flash_price_campaign by specifying flash sale context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides use cases (holiday, clearance, limited-time) but lacks explicit comparison to sibling tools or when-not-to-use guidance. Implicit differentiation but not explicit.

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