Skip to main content
Glama

business_rfm

Read-only

RFM customer segmentation: Champions, At Risk, Cannot Lose Them... with actions — Offline RFM (recency, frequency, monetary) analysis. Send customers=id:recency_days:frequency:monetary;... OR raw orders=customer:YYYY-MM-DD:amount;... with optional as_of=YYYY-MM-DD (5-5000 customers). Scores each customer 1-5 on R, F and M by quintile within your list, assigns the standard 10 segments (Champions, Loyal Customers, Potential Loyalists, New Customers, Promising, Need Attention, About To Sleep, At Risk, Cannot Lose Them, Hibernating), and returns a segment summary with customer and revenue share, averages and a recommended marketing action, revenue at risk, and the top customers by score (limit=, default 100). Price: $0.003 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "customers": "<customers>"
    },
    "name": "business_rfm"
  }
}

Input Schema

NameRequiredDescriptionDefault
customersYesc1:5:12:2400;c2:40:3:300;c3:200:8:1600;c4:3:1:80;c5:90:2:150;c6:15:6:900;c7:365:1:40;c8:10:20:5000;c9:60:4:500;c10:30:2:220

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the description carries most of the load and does so well: it discloses the quintile scoring method, the exact output contents, and the price ($0.003 USDC on Base via x402), which is critical for a paid endpoint. It omits failure behavior and rate limits, and references an 'orders' input path that the schema does not expose, which slightly muddies the contract.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is one dense run-on paragraph that leads with the ten segment names rather than the core purpose, and the full segment list plus the duplicated title phrasing adds bulk. Most sentences do carry information an agent needs, but the structure makes the essential format instructions harder to locate than necessary.

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?

With no output schema, the description compensates by enumerating the returned artifacts (segment summary, revenue share, averages, recommended action, revenue at risk, top customers with limit default 100). For a single-parameter analytical tool this is close to sufficient; only input validation behavior and monetary-unit assumptions are left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema's only parameter is documented by an example string, so the description adds genuine meaning by decoding the positional format (id:recency_days:frequency:monetary) and the cardinality bound. However, it describes options not present in the schema (orders=, as_of=, limit=), so an agent cannot tell whether those are supported or whether the schema supplied is incomplete.

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?

States a specific verb and resource: performs offline RFM analysis, scores customers 1-5 by quintile, and returns a segment summary with revenue share and recommended actions. The named output artifacts (10 segments, revenue at risk, top customers) make the tool unmistakable and separate it from the sibling business_* calculators.

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 gives input-format guidance ('Send customers=id:recency_days:frequency:monetary;... OR raw orders=...') and a size constraint (5-5000 customers), but never says when this tool is the right choice, what assumptions it makes (currency consistency, historical window), or what to do when the list falls outside the range. Usage is implied by the RFM framing rather than explicitly scoped.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources