Skip to main content
Glama

list_flash_price_campaigns

List all flash price campaigns with their ID, title, status, and time range. Use campaign IDs to retrieve detailed campaign information.

Instructions

取得快閃價格活動列表。

【用途】 瀏覽商店所有快閃特賣(限時特價)活動,了解活動名稱、狀態與時間範圍。 可取得 campaign_id 後進一步呼叫 get_flash_price_campaign_detail 查詢完整詳情。

【呼叫的 Shopline API】

  • GET /v1/flash_price_campaigns

【回傳結構】 dict 含 total_found, returned, items[]。 每筆包含 id, title, status, start_at, end_at, created_at。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_resultsNo最多回傳筆數
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the API endpoint (GET /v1/flash_price_campaigns) and the return structure (dict with total_found, returned, items containing specific fields). However, it lacks details on pagination behavior, sorting, or any filtering capabilities beyond the max_results parameter. This is adequate but leaves some gaps.

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 call, return structure). It is concise yet informative, using bullet points and no unnecessary words. Every sentence adds value.

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 a simple input schema (one optional parameter) and no output schema, the description provides a detailed return structure and a forward reference to another tool. It is mostly complete but could mention pagination or sorting behavior to fully compensate for the 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 one parameter (max_results) already described in the schema as '最多回傳筆數'. The description does not add additional semantic value beyond this. The baseline is 3 due to high coverage, and no extra parameter context is provided.

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 lists flash price campaigns, with specific purpose of browsing all flash sales and obtaining campaign IDs for further detail. It distinguishes itself from sibling tools like create_flash_price_campaign and get_flash_price_campaign_detail by explicitly mentioning the latter for full details.

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 a '用途' section explaining when to use the tool: to browse all flash sales and understand campaign details. It also gives an explicit alternative: after obtaining campaign_id, call get_flash_price_campaign_detail. However, it does not explicitly state when not to use this tool, such as for retrieving a single campaign directly.

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