Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

get_rfm_analysis

Segment customers into RFM groups using order data. Specify a date range and thresholds for recency, frequency, and monetary value to classify shoppers based on purchasing behavior.

Instructions

根據訂單資料進行 RFM(Recency/Frequency/Monetary)分群分析。注意:僅能分析有下單紀錄的客戶(Customers API 為 403)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYes分析區間結束 YYYY-MM-DD
start_dateYes分析區間起始 YYYY-MM-DD
f_thresholdNoFrequency 門檻(消費 ≥ 此值為高 F)
m_thresholdNoMonetary 門檻金額(累計 ≥ 此值為高 M)
r_days_thresholdNoRecency 門檻天數(最近消費 ≤ 此值為高 R)
Behavior2/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 of behavioral disclosure. It does disclose a useful limitation—only customers with order records can be analyzed (Customers API returns 403)—but it does not describe the output format, how thresholds affect segmentation, or the exact data scope, leaving significant behavioral 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 extremely concise, consisting of two short sentences: one stating the purpose and one adding a warning. Every word earns its place, and the purpose is front-loaded.

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

Completeness2/5

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

For an analytical tool with no annotations and no output schema, the description is incomplete. It clarifies the data source (orders) and a limitation, but does not explain what the RFM output contains, how thresholds are used, or how customers without orders are handled beyond the 403 note. Significant context is missing.

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?

The input schema has 100% coverage with descriptions for all five parameters, including thresholds and date range. The description adds no extra parameter semantics beyond the schema, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool performs RFM (Recency/Frequency/Monetary) segmentation analysis based on order data, which is a specific verb and resource. However, it does not explicitly distinguish itself from sibling analytical tools such as get_repurchase_analysis or get_customer_lifecycle, so it lacks sibling differentiation.

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?

The description provides no guidance on when to use this tool versus alternative analytics tools. The only note is a limitation (only customers with order records can be analyzed), which is a constraint rather than a selection criterion or when-to-use instruction.

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