Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

get_slow_movers

Identify slow-moving products using inventory and sales data, and flag items with excessive days of supply or no sales to prioritize clearance.

Instructions

找出庫存高但銷量低的滯銷商品。

【用途】交叉比對商品庫存與銷售數據,計算每個商品的日均銷量與可售天數(days_of_supply), 標記 days_of_supply 超過門檻或零銷售的商品為滯銷品,協助清倉決策。 【呼叫的 Shopline API】

  • GET /v1/products(商品列表含庫存)

  • GET /v1/orders/search(銷售數據) 【回傳結構】dict 含 period、period_days、total_products、slow_movers(滯銷商品列表)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYes分析區間結束 YYYY-MM-DD
start_dateYes分析區間起始 YYYY-MM-DD
days_thresholdNo可售天數門檻,超過此值視為滯銷
Behavior4/5

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

With no annotations, the description bears the full burden. It transparently lists the calculation logic, the underlying Shopline API endpoints (GET /v1/products and GET /v1/orders/search), and the return structure. This reveals that the tool aggregates data and is read-only in nature (GET calls), though it does not explicitly state side-effect-free behavior.

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 header sections for purpose, API calls, and return structure. It is concise and front-loaded; each section provides essential information without unnecessary fluff. The mild redundancy between the opening line and the 用途 section is negligible.

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?

The tool has no output schema, and the description adequately describes the return structure (period, period_days, total_products, slow_movers). It also covers the data sources and calculation method, giving an agent sufficient context to invoke the tool. However, it does not describe edge cases or error conditions, which would elevate it further.

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%, and the description adds no further meaning beyond the schema. The tool description mentions the use of start/end dates and the threshold concept, but the schema already explains each parameter's role and the default value. No additional 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's function: identifying slow-moving products with high inventory and low sales. It explains the specific metric (days_of_supply) and the threshold/zero-sales criteria, which distinguishes it from sibling inventory analysis tools.

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?

It gives a clear business context ('協助清倉決策' – assists clearance decisions), but doesn't explicitly mention when to use this instead of alternatives like get_inventory_turnover. No exclusions or alternative tool references are provided.

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