Compute unit economics
unit_economics_computeUse when the user asks what a customer is worth or whether acquisition pays back: lifetime value, LTV to CAC, CAC payback, gross margin per customer, for recurring (subscription), one-time and transaction (repeat purchase) revenue in any mix. Takes up to three revenue lines and three cost of sales lines, each typed Recurring, One time or Transaction, with churn, billing and repeat periods, a discount rate, CAC and retention costs. Returns LTV split by revenue type, the ratios, and one customer's monthly revenue, billings, costs and cumulative cash flow (discounted and not) from the month of acquisition (month 0) through month 48, or through the months input (12 to 120). Runs the same math as Hemrock's Unit Economics Tool spreadsheet, checked against the workbook. Send inputs with only what the user gave you; everything else takes the model's defaults, and the result echoes every input used, so tell the user which defaults mattered. Set months (12 to 120, default 48) for the length of the forecast; monthly results are arrays with one value per month, month 1 first, and the totals cover the same months. LTV counts at most ltvMonths months of a customer's life (1 to 120, default 60), whatever the forecast length. The result includes webUrl: give it to the user, because it opens this exact model in Hemrock's web version, where they can change any input and download the live Excel workbook. Free: signed in it uses no calculations; without an account it counts toward a few free runs a day.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unit_economics_compute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | The model inputs. Send only what differs from the defaults; anything left out takes its default. |