Skip to main content
Glama

Calculate LTV : CAC

calculate_ltv_cac
Read-onlyIdempotent

Work out customer lifetime value (gross profit over the average lifetime), its ratio to the cost of winning a customer and the months to win that cost back, from revenue per customer, gross margin, monthly churn and acquisition cost. Send numbers only (percentages as 5 for 5%). Answers a headline, the figures behind it and notes. Arithmetic on your own numbers, not financial advice. Answers from what you send alone: nothing is fetched or stored.

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": {
      "arpa": "<arpa>",
      "margin": "<margin>",
      "churn": "<churn>",
      "cac": "<cac>"
    },
    "name": "calculate_ltv_cac"
  }
}

Input Schema

NameRequiredDescriptionDefault
cacYesCost to win one customer. A month's sales and marketing spend, divided by the customers it won.
arpaYesAverage revenue per customer, per month
churnYesCustomers lost per month (%)
marginYesGross margin (%). What's left of revenue after hosting, payment fees and support.
currencyNoThe sign money is written with; "none" for bare numbers. Default "$".

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world and non-destructive behaviour, so the bar is lower. The description nevertheless adds real context beyond them: nothing is fetched or stored, results derive solely from supplied inputs, and the response contains a headline, supporting figures and notes.

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?

The formula and input conditions are front-loaded in the first two sentences, with the scope caveat last. It is dense but nearly every clause carries information; the 'headline, figures and notes' phrase is slightly redundant given the output schema exists.

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 an output schema present, the description need not explain return values, and it adequately covers the four required inputs, unit conventions, and the no-network, no-storage behaviour. The only gap is routing guidance against sibling calculators, which leaves selection to inference.

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?

Schema coverage is 100%, so the baseline is 3. The description goes modestly further by stating 'send numbers only (percentages as 5 for 5%)', which reinforces the unit convention that the percentage fields and the separate currency enum depend on, reducing the chance of a 0.05-vs-5 input error.

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 names the specific computation and even its formula basis: lifetime value as gross profit over average lifetime, its ratio to acquisition cost, and months to payback. This is clearly distinct from arithmetic siblings such as calculate_mrr or calculate_churn, so an agent can select it without opening the schema.

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 listed inputs (revenue per customer, margin, churn, CAC) and the caveat 'Arithmetic on your own numbers, not financial advice', which tells the agent what the tool is not. There is no explicit statement of when to prefer it over sibling calculators, nor any prerequisite or exclusion, so guidance remains inferred rather than stated.

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