Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

get_sales_summary

Retrieve sales summary metrics (revenue, orders, average order value, discounts) for a date range. Filter by channel or store to analyze performance.

Instructions

取得指定時間區間的銷售摘要:營業額、訂單數、客單價、件單價、折扣總額等核心指標。支援依通路/門市篩選。

Input Schema

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

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

No annotations are provided, so the description carries full responsibility for behavioral disclosure. It only states functional behavior and does not mention performance implications (e.g., scanning all orders for large ranges), required permissions, or potential side effects.

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?

Two concise sentences that front-load the key metrics and filter capabilities, with no wasted words. The structure is clear and scannable.

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 the tool's simplicity and the absence of an output schema, the description provides a reasonable overview of what it returns and the available filters. It could be enhanced with a note about the default status or performance caveats, but these are covered in the schema, making it adequate.

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 descriptions cover 100% of parameters, so the baseline is 3. The main description adds no further parameter detail beyond mentioning channel/store filters, which are already in the schema.

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 gets a sales summary for a specified time range, listing concrete metrics (revenue, order count, average order value, etc.) and mentions channel/store filtering. This distinguishes it from siblings like get_refund_summary or get_sales_trend.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives such as get_sales_trend or get_channel_comparison. The description implies a use case (time-range summary) but provides no exclusions or references to sibling tools.

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