Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

get_sales_trend

Retrieve sales trend data for any date range with selectable daily, weekly, or monthly granularity and channel filters. Plot sales performance over time to spot trends.

Instructions

取得銷售趨勢數據,支援每日/每週/每月粒度,可用於繪製趨勢圖。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelNo通路篩選all
end_dateYes結束日期 YYYY-MM-DD。建議與 start_date 維持較短區間以加快查詢。
start_dateYes起始日期 YYYY-MM-DD。⚠️ 本工具會逐頁掃描區間內所有訂單,區間越大越慢,請只查實際需要的最小區間(如單週或單月),避免一次查詢過長期間。
granularityNo時間粒度daily
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It adds a useful behavioral trait via the start_date warning: the tool scans all orders page by page for the date range, so larger intervals degrade performance. It does not disclose return format or pagination behavior, and there is no output schema to fill that gap.

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 a single, front-loaded sentence that immediately states the core function and key options. No filler, no redundancy, and it earns its place by conveying both purpose and granularity support.

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?

The tool has no output schema or annotations, and while the schema descriptions are detailed and provide performance warnings, the high-level description does not specify what the response contains (e.g., time series of sales amounts) or how trend data is structured. It is adequate for a simple read-only query but leaves gaps for an agent needing to parse results.

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 description coverage is 100%, so the baseline is 3. The tool description adds no additional parameter meaning beyond the schema; it merely restates granularity options already present in the enum and descriptions, and does not elaborate on channel semantics beyond '通路篩選'.

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 uses a specific verb ('取得' - get) and resource ('銷售趨勢數據' - sales trend data), clearly indicating its purpose. It explicitly mentions granularity options for daily/weekly/monthly, which distinguishes it from sibling tools like get_sales_summary or get_channel_comparison by focusing on time-series trend data.

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?

The description implies usage for trend charting with configurable granularity, and the start_date schema provides explicit performance guidance to keep intervals minimal. However, it does not state when to prefer this tool over alternatives like get_sales_summary, nor any exclusion criteria such as 'not for aggregate totals'.

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/tzangms/shoplinemcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server