Skip to main content
Glama

get_rfm_analysis

Segment customers by Recency, Frequency, and Monetary value from order data to identify high-value customer groups.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateYes分析區間起始 YYYY-MM-DD
end_dateYes分析區間結束 YYYY-MM-DD
r_days_thresholdNoRecency 門檻天數(最近消費 ≤ 此值為高 R)
f_thresholdNoFrequency 門檻(消費 ≥ 此值為高 F)
m_thresholdNoMonetary 門檻金額(累計 ≥ 此值為高 M)
Behavior3/5

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

No annotations are provided, so the description bears full responsibility. It explains the analysis scope and a limitation, but does not disclose if the tool is read-only, any side effects, or performance characteristics. Adequate but could be more transparent.

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 sentences succinctly convey the core purpose and a critical limitation without any extraneous information. Every word is necessary.

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?

The tool has 5 parameters, no output schema, and no annotations. The description fails to explain what the tool returns (e.g., segment labels, counts, or customer lists). For a complex analysis tool, this is a significant gap that hinders proper use.

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 schema already documents all parameters. The description does not add any further meaning beyond what is in the schema, meeting but not exceeding expectations.

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 clearly states 'perform RFM segmentation analysis based on order data', which is a specific verb+resource. It distinguishes from sibling analysis tools like get_customer_geo_analysis, but it does not explicitly contrast itself.

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 provides a crucial usage constraint: only works for customers with order records, and hints at Customers API returning 403. This gives clear context on when it is applicable, though it does not mention alternative 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/asgard-ai-platform/mcp-shopline'

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