Skip to main content
Glama

business_cohort_retention

Read-only

Cohort retention analysis + LTV — Cohort retention table from active counts per period: cohorts=Jan:1000,620,480,410;Feb:900,570,450;... (period 0 = cohort size, oldest first, up to 60 cohorts x 120 periods). Returns the retention matrix (%), size-weighted average curve, period-over-period churn, power-law or exponential fit (best R2), projected curve to periods= (default 24, max 120), expected active periods, newest-vs-oldest period-1 trend (IMPROVING/STABLE/WORSENING), and a curve verdict (FLATTENING/SLOWLY_FLATTENING/STEADY_DECAY/STEEP_DECAY/SMILE). Optional arpu= (revenue per active user per period), margin= % and discount= % per period give a projected LTV. Offline, instant. 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": {
      "cohorts": "<cohorts>"
    },
    "name": "business_cohort_retention"
  }
}

Input Schema

NameRequiredDescriptionDefault
cohortsYesJan:1000,620,480,410,380,365;Feb:900,570,450,390,370;Mar:1100,700,560,490;Apr:1000,650,520;May:1200,800

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false), but the description adds material context they cannot: the computation is offline and instant, and each call costs $0.003 USDC via x402 on Base — a billing constraint an agent must know before invoking. It also enumerates the returned artifacts, which matters because there is no output schema. Minor tension: 'Offline' sits awkwardly beside openWorldHint=true, though this is a definitional quirk rather than a behavioral claim an agent would act on incorrectly.

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

Conciseness4/5

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

Front-loaded with the core purpose and input shape, then output contents, then pricing — a sensible order. It is dense and heavily punctuated (semicolon-laden cohort list, stacked output terms), but nearly every clause carries information the agent cannot get from the schema since there is no output schema.

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 correctly takes on the return-value burden and enumerates the matrix, average curve, churn, fit, projection, trend and verdict, including projection defaults and caps. The remaining gap is the phantom arpu/margin/discount/periods parameters and no note on how malformed cohort strings are handled.

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 coverage is 100% and the schema itself supplies an example string, so the baseline is 3; the description does add real semantics — period 0 equals cohort size, oldest cohort first, caps of 60 cohorts x 120 periods. However it also references arpu=, margin=, discount= and periods= as if they were parameters, while the schema exposes only 'cohorts', which could mislead an agent into passing unsupported arguments.

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?

Opens with a specific verb+resource pair: cohort retention table plus LTV from active counts per period. The scope (up to 60 cohorts x 120 periods, period 0 = cohort size, oldest first) makes it unambiguously distinct from sibling analytics tools like business_rfm or business_abc_analysis.

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?

Usage is implied by the input format example rather than stated: an agent can infer 'give me per-period active counts per cohort.' There is no explicit when-to-use/when-not-to-use guidance and no named alternative among the many sibling business_* tools, so the routing decision is left to inference.

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